Commit graph

152 commits

Author SHA1 Message Date
59da2976ab Some more API cleanup.
- Extracted methods for is_mod_or_admin, and is_admin.
- Removed admins from GetPostResponse and GetCommunityResponse.
- Some cleanup.
2020-07-22 14:20:08 -04:00
b6a6d52a92 Merge branch 'main' into api_edit_separation 2020-07-22 13:47:52 -04:00
f81a7ad9ab Adding form_id to comment creates and edits.
- This adds a form_id to CreateComment, EditComment, and CommentResponse
- This is so any front end clients can add a randomly generated string,
  and know which comment they submitted, is the one they're getting
  back.
- This gets rid of all the weird complicated logic in handleFinished(),
  and should stop the comment forms getting cleared once and for all.
2020-07-21 10:56:41 -04:00
4b6a762a56 Added an is_mod_or_admin function to Community 2020-07-21 10:15:17 -04:00
Dessalines
55ce7b1339
Adding version to GetSite. Fixes #1001 (#1002)
* Adding version to GetSite. Fixes #1001

* Removing version.ts file
2020-07-21 13:20:23 +00:00
2eac037408 Adding post delete, remove, lock, and sticky. 2020-07-20 23:46:36 -04:00
fd96dfdb5e Added comment delete, remove, read. 2020-07-20 21:37:44 -04:00
Coma Grayce
cd0f1a8eb2
Ooops. 2020-07-21 01:08:59 +03:00
Coma Grayce
6fbfb69ee4
Add sub and sup Markdown tags. 2020-07-21 01:06:22 +03:00
613b462662 Merge branch 'main' into api_edit_separation 2020-07-20 14:41:20 -04:00
9bc6698f58 Added community delete and remove. 2020-07-20 13:37:39 -04:00
a67f46bec5 EditUserMention changed to MarkUserMentionAsRead. 2020-07-20 10:56:40 -04:00
jcfrancisco
1a421e96d7
📝 Add macOS-specific instructions for local development. (#996)
* 📝 Add macOS-specific instructions for local development.

* 📝 Remove extra 'git' package installation instruction
2020-07-20 10:03:15 -04:00
0a28ffb9c4 Private message delete and read extracted. 2020-07-20 00:29:44 -04:00
Dessalines
78cb306c07
Don't allow community name editing. Fixes #964 (#973) 2020-07-15 09:53:52 -04:00
2f5e191b2d Changing references from master to main. #820 2020-07-14 13:30:36 -04:00
Dessalines
e5d3e3a9c3
Adding a configurable config location through an env var. (#960)
* Adding a configurable config location through an env var.

- Its `LEMMY_CONFIG_LOCATION`
- Fixes #764

* Using a static for CONFIG_FILE again.

* Make clippy happy
2020-07-13 11:33:48 -04:00
Dessalines
7556f8615f
Adding a community_name option to GetPosts /post/list . Fixes #800 (#942) 2020-07-13 09:50:13 -04:00
181374d2cc Fixing travis, adding a test.sh script. 2020-07-10 14:16:42 -04:00
nutomic
80aef61aed Split code into cargo workspaces (#67)
More fixes

- fixed docker builds
- fixed mentions regex test
- fixed DATABASE_URL stuff
- change schema path in diesel.toml

Address review comments

- add jsonb column back into activity table
- remove authors field from cargo.toml
- adjust LEMMY_DATABASE_URL env var usage
- rename all occurences of LEMMY_DATABASE_URL to DATABASE_URL

Decouple utils and db

Split code into cargo workspaces

Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/67
2020-07-10 18:15:41 +00:00
aaa536b454 Merge branch 'improve-council-rules' 2020-07-07 14:00:43 +02:00
6122fb9f73 Improve council rules 2020-07-07 13:54:01 +02:00
b9d16d7cd0 Fixing some typos. 2020-07-06 11:39:31 -04:00
Dessalines
8aa9cc11eb
Fixing federation testing docs. Fixes #878 (#879)
* Fixing federation testing docs. Fixes #878

* Removing extra clone.
2020-07-03 18:17:21 +00:00
be6e95e564 Merge remote-tracking branch 'yerba/master' 2020-06-29 13:24:29 -04:00
997e373bf9 Adding ansible comment line. 2020-06-29 09:55:23 -04:00
c1b3711090 Adding line for council admins. 2020-06-28 19:23:24 -04:00
e517de5480 Merge branch 'master' into federation 2020-06-27 10:54:08 -04:00
bd3051e058 Merge branch 'master' into improve-config 2020-06-27 10:09:16 -04:00
afe3b6b2fc Add docs for testing (fixes #841) 2020-06-27 15:28:45 +02:00
0c89de8065 Fix previous comment, also fix link in docs 2020-06-26 19:16:41 +02:00
fruechtchen
a774e0a2a1 update lemmy council memberlist 2020-06-24 21:03:50 +02:00
dc94e58cbf Merge branch 'master' into federation_merge_from_master_2 2020-06-23 21:11:38 -04:00
790b944031 Changing to new lemmynet repo location. 2020-06-23 13:47:02 -04:00
84ed1ecdfd Fixing docker install instructions for pictshare. #831 2020-06-23 09:37:16 -04:00
325ed2ec3b Rename "instance_whitelist" config option to "allowed_instances" 2020-06-16 12:49:51 +02:00
5a6f39dae4 Various build optimizations 2020-06-12 15:29:50 +02:00
de0fb631df Improve documentation for local development 2020-06-11 15:04:20 +02:00
0f1a8ec928 Merge branch 'master' into federation 2020-06-09 14:01:26 +02:00
Lorenz Schmidt
a3a55dd195
Indicate unstable API in README and mdbook (#781) 2020-06-05 12:03:01 -04:00
7f58ea2725 Updating federation dev branch. 2020-05-24 13:25:29 -04:00
d2e38b1062 Updating docs to setup lemmy.hjson beforehand. 2020-05-15 10:21:37 -04:00
38cdfdf7e0 Changing federated community and user links and searching.
- Search: !community@instance, @user@instance
- Representation: community@instance, user@instance
2020-04-30 11:45:12 -04:00
2f47ea2228 Merge branch 'link_images' of https://github.com/nyu-ossd-s20/lemmy into nyu-ossd-s20-link_images 2020-04-27 18:20:58 -04:00
niniack
09d4bf1d7a swap imgur links for github links 2020-04-27 16:22:56 -04:00
Nishant Aswani
674e221335 added main_screen and chat_screen (#665) 2020-04-26 10:01:21 -04:00
Nishant Aswani
d0fa235e84 Updated ranking algorithm graph in docs (#654)
* Regraphed ranking algorithm demo with seaborn plot

* use imgur mirror for ranking algo image
2020-04-22 15:38:51 -04:00
1e7c3841b2 Update federation dev instructions 2020-04-21 13:24:08 +02:00
bb287cbd07 Adding an admin settings page.
- Fixes #620
- Adding a UserListing component. Fixes #627
2020-04-10 16:55:57 -04:00
ed264aba3c Updating code url references to https://github.com/LemmyNet/lemmy 2020-04-09 16:11:11 -04:00
522299ea9e Adding docs for DB Backup / Restore. Fixes #619 2020-04-03 14:37:44 -04:00
3c2a2a0adf Improve installation docs 2020-03-31 02:06:31 +02:00
9fd95a4415 Merge branch 'nutomic-federation-dev-docs' 2020-03-28 15:46:39 -04:00
a789e4db2a Adding a resource to docs. 2020-03-28 15:43:56 -04:00
4796f890fb Add documentation for contributing to federation development 2020-03-26 15:45:56 +01:00
3b632c9501 Add some docs. 2020-03-24 09:58:01 -04:00
522649d9d3 Notification improvements.
- Adding a navbar notification icon for mobile.
- Adding an in-app notification toast. To be improved later.
- Fixes #607
2020-03-20 16:13:54 -04:00
231f782260 Adding repos to contributing main page. 2020-03-18 19:59:34 -04:00
1a7c6fbd32 Add theming guide. Fixes #596 2020-03-15 13:02:14 -04:00
0708a6d665 Adding a sorting help. Fixes #532 2020-03-06 14:18:40 -05:00
a3b6118927 Reordering activitypub resources. 2020-03-06 12:48:51 -05:00
ade334b251 Add Lemmy Council governance document. 2020-03-03 09:23:43 -05:00
2062d07eb7 Fixing about guide. 2020-02-17 20:54:45 -05:00
29822c13af Add a user guide. Fixes #543 2020-02-17 20:48:17 -05:00
55f91ac5dc First pass at adding oembeds / iframely. 2020-02-17 11:18:01 -05:00
b7a332ff3c Minor fixes to docs. 2020-02-06 16:26:03 -05:00
cd4001b2ef Merge branch 'minor_changes' of https://github.com/StaticallyTypedRice/lemmy into StaticallyTypedRice-minor_changes 2020-02-06 16:23:35 -05:00
Richie Zhang
9b6f8ec207 Add instructions for unning db-init.sh to administration_configuration.md 2020-02-06 12:26:01 -08:00
Richie Zhang
12c7633380 Add instructions for unning db-init.sh to contributing_local_development.md 2020-02-06 12:25:13 -08:00
894a80eb88 Reworking README.md. Fixes #513. 2020-02-06 11:26:11 -05:00
D Anzorge
3bee6f6e31 Use correct database env variable in docs
see server/src/settings.rs
2020-01-27 01:45:02 +01:00
8b88a8e75b Squashed commit of the following:
commit f5b75f342b
Merge: bd1fc2b 69389f6
Author: Dessalines <happydooby@gmail.com>
Date:   Thu Jan 23 19:17:42 2020 -0500

    Done merging http-api and private_message

commit bd1fc2b80b
Author: Dessalines <happydooby@gmail.com>
Date:   Thu Jan 23 16:46:07 2020 -0500

    Remove danger from private-message.tsx

commit 69389f61c9
Author: Dessalines <happydooby@gmail.com>
Date:   Thu Jan 23 11:21:21 2020 -0500

    Fixing http curl POST docs.

commit 7fdcae4f07
Merge: dbe9ad0 752318f
Author: Dessalines <happydooby@gmail.com>
Date:   Thu Jan 23 11:01:06 2020 -0500

    Merge remote-tracking branch 'nutomic/http-api' into dessalines-http-api

commit 752318fdf3
Author: Felix <me@nutomic.com>
Date:   Thu Jan 23 15:22:17 2020 +0100

    api fixes

commit 9ccff18f23
Author: Dessalines <happydooby@gmail.com>
Date:   Wed Jan 22 22:29:11 2020 -0500

    Adding a toaster to replace alerts. Fixes #457

commit 5197407dd2
Merge: bacb9ac 58f673a
Author: Dessalines <happydooby@gmail.com>
Date:   Wed Jan 22 21:20:38 2020 -0500

    Merge branch 'private_messaging' into dev

commit 58f673ab78
Author: Dessalines <happydooby@gmail.com>
Date:   Wed Jan 22 21:09:17 2020 -0500

    Adding message to comment node actions.

commit bacb9ac59e
Merge: 10c6505 7d3adda
Author: Dessalines <happydooby@gmail.com>
Date:   Wed Jan 22 20:37:08 2020 -0500

    Merge branch 'private_messaging' into dev

commit 10c6505968
Author: Dessalines <happydooby@gmail.com>
Date:   Wed Jan 22 20:35:20 2020 -0500

    Adding correct hello_name to mail.

commit 7d3adda0cd
Author: Dessalines <happydooby@gmail.com>
Date:   Wed Jan 22 16:35:29 2020 -0500

    Adding private messaging, and matrix user ids.

    - Fixes #244

commit dbe9ad0998
Author: Dessalines <happydooby@gmail.com>
Date:   Mon Jan 20 18:49:54 2020 -0500

    Fixing last.

commit 20c9c54806
Author: Dessalines <happydooby@gmail.com>
Date:   Sun Jan 19 13:31:37 2020 -0500

    Updating API docs.

commit dc84ccaac9
Merge: 6c61dd2 3edd75e
Author: Dessalines <happydooby@gmail.com>
Date:   Sun Jan 19 10:06:25 2020 -0500

    Merge branch 'master' into dessalines-http-api

commit 6c61dd266b
Merge: c5eecd0 e518954
Author: Dessalines <happydooby@gmail.com>
Date:   Sun Jan 19 09:09:00 2020 -0500

    Merge remote-tracking branch 'nutomic/websocket-generics' into dessalines-http-api

commit e518954bca
Author: Felix <me@nutomic.com>
Date:   Sun Jan 19 14:25:50 2020 +0100

    Use generics to reduce code duplication in websocket

commit c5eecd055e
Author: Dessalines <happydooby@gmail.com>
Date:   Sun Jan 19 00:38:45 2020 -0500

    Strongly typing WebsocketJsonResponse. Forgot comment-form.tsx

commit 0c5eb47135
Author: Dessalines <happydooby@gmail.com>
Date:   Sat Jan 18 23:54:10 2020 -0500

    First pass at fixing UI to work with new websocketresponses.

commit baf77bb6be
Author: Felix <me@nutomic.com>
Date:   Sat Jan 18 17:25:45 2020 +0100

    simplify json serialization code

commit 047ec97e18
Author: Felix <me@nutomic.com>
Date:   Sat Jan 18 14:22:25 2020 +0100

    rewrite api endpoint urls

commit 2fb4900b0c
Author: Felix <me@nutomic.com>
Date:   Thu Jan 16 17:04:37 2020 +0100

    fix typo

commit cba8081579
Author: Felix <me@nutomic.com>
Date:   Thu Jan 16 16:47:38 2020 +0100

    fix formatting

commit d7285d8c25
Author: Felix <me@nutomic.com>
Date:   Thu Jan 16 16:09:01 2020 +0100

    small fix

commit 415040a1e9
Author: Felix <me@nutomic.com>
Date:   Thu Jan 16 15:39:08 2020 +0100

    working!

commit 7a97c981a0
Author: Felix <me@nutomic.com>
Date:   Wed Jan 15 16:48:21 2020 +0100

    try to simplify code with higher order functions

commit c41082f98f
Author: Felix <me@nutomic.com>
Date:   Wed Jan 15 16:37:25 2020 +0100

    Implement HTTP API using generics (fixes #380)
2020-01-23 19:39:59 -05:00
Andre Vallestero
50056699ac Fixed infernojs url 2020-01-22 10:35:09 -05:00
bc257d36ed Add more info to contributing. Fixes #429 2020-01-17 17:52:48 -05:00
0f8965fac9 Adding some fixes to new docs system. 2020-01-01 17:47:00 -05:00
62ba018b19 Include docs in docker image 2020-01-01 18:14:09 +01:00
77847ab3e6 Move translations to readme, put install instructions in both places 2020-01-01 17:26:59 +01:00
d80e8fc075 Use mdbook for documentation (fixes #375) 2020-01-01 17:24:36 +01:00
b63878d306 Adding API docs for RSS feeds.
- Fixes #348
2019-12-06 21:09:59 -08:00
bf584e525b Add user mentions to API docs.
- Fixes #329
2019-11-22 16:39:53 -08:00
3fb328ec1c Adding TOC to api.md 2019-11-06 10:57:51 -08:00
3021d19e1f Fixing ansible build, and email link. 2019-11-02 13:07:19 -07:00
3a1e210ce1 Update api docs. 2019-10-21 12:48:43 -07:00
5547ecdeaf Fixing delete account docs again.
- #298
2019-10-18 21:42:35 -07:00
d1a01c38ed Add API docs for DeleteAccount and theme
- Fixes #298
2019-10-16 16:00:53 -07:00
0eb7d6c304 Fixing API doc issue. 2019-09-11 14:13:38 -07:00
1954d2b67f Updating translation report, adding some new lines in api docs. 2019-09-07 08:18:52 -07:00
Maxime Launois
6488c87949 Clarified API 2019-09-07 16:22:01 +02:00
25e23af555 Adding link for ranking. 2019-08-26 13:14:14 -07:00
630513540e Adding transfer community and site to API docs. 2019-08-25 11:16:46 -07:00
d7ab85ab70 Squashed commit of the following:
commit ecd6c5a2f4
Author: Dessalines <happydooby@gmail.com>
Date:   Tue Aug 13 19:49:38 2019 -0700

    Adding some docs

commit 3babd09aff
Author: Dessalines <happydooby@gmail.com>
Date:   Tue Aug 13 19:28:46 2019 -0700

    Adding save user settings

commit 6e8da9cc9e
Merge: 3246d5d c148eef
Author: Dessalines <happydooby@gmail.com>
Date:   Tue Aug 13 17:26:25 2019 -0700

    Merge branch 'dev' into nsfw

commit b3d4a5c4ce
Author: Dessalines <happydooby@gmail.com>
Date:   Sun Aug 11 20:55:09 2019 -0700

    nsfw mostly done, except for settings page.
2019-08-13 19:52:43 -07:00
f4fd06aa5b Fixing GetSite
- Fixes #171
2019-06-11 18:41:01 -07:00
9283501f23 Updating api.md. 2019-05-15 13:50:18 -07:00
d3a99261a7 Updates to api docs. 2019-05-15 11:48:01 -07:00
8820eac129 Removing need for spam_timer 2019-05-15 09:32:33 -07:00
442bb3d20e Adding sort types to API. 2019-05-15 09:21:10 -07:00
5e1fcd318a Adding API docs for app developers.
- Fixes #99.
2019-05-15 09:04:05 -07:00
61bb201448 Docker image now down to 35 MB, using alpine. 2019-05-13 17:46:29 -07:00
a5664c75ba Adding a simple image expander instead of iframes.
- Fixes #91
2019-04-24 09:28:20 -07:00
93957c781e Fixing ranking algorithm. 2019-04-21 10:15:40 -07:00