Commit Graph

208 Commits (main)

Author SHA1 Message Date
Dessalines b893085d1f Adding users active monthly for community sort. Fixes #1527 3 years ago
Dessalines bf7558830f Changing preferred to display name. Fixes #1211 3 years ago
Dessalines 2f63fdbde0 Adding a setting to show / hide scores. Fixes #1503 3 years ago
Dessalines eb45bf2d0a Moving admin to person table. Fixes #1515 3 years ago
Dessalines 53ea383b4e Forgot to regenerate person_alias views 3 years ago
Dessalines 1745b64ceb Moving matrix_user_id to person table. #1438 3 years ago
Dessalines 05b485b678 Merge branch 'Mart-Bogdan-1462-jwt-revocation-on-pwd-change' into jwt_revocation_dess 3 years ago
Bogdan Mart 7b0a09e84e Merge remote-tracking branch 'origin/main' into 1462-jwt-revocation-on-pwd-change
* origin/main:
  revert Compose file version from 3.3 to 2.2
  Adding more mem limits
  bump memory limit of iframely
  Remove extra category_id s . Fixes #1429
  Fixing wrong user_ and community icon and banner urls.
  Remove category from activitypub context
  Adding a password length check to other API actions. (#1474)
  Update test script
  Use URL type in most outstanding struct fields (#1468)
  Forbid usage of unwrap
  Upgrade Rust version
  Rewrite settings implementation. Fixes #1270 (#1433)
  Rename `lemmy_structs` to `lemmy_api_structs`

# Conflicts:
#	crates/db_schema/src/source/user.rs
3 years ago
Bogdan Mart ab947f1f08 User token revocation upon password change
Added DB column validator_time and chedking that is is less then token's "Issuead at time"
Wip on #1462
3 years ago
Dessalines ddf4a667b1 ~80% done 3 years ago
Dessalines 817b4ff08e Fixing wrong user_ and community icon and banner urls.
- Fixes #1477
3 years ago
Andrew Yoon e78ba38e94
Use URL type in most outstanding struct fields (#1468)
* Use URL type in most outstanding struct fields

This fixes all known remaining cases where url fields are stored as
plain strings, with the exception of form fields where empty strings
are used as sentinels (see `diesel_option_overwrite_to_url`).

Tested for regressions in the federated docker setup attempting to
exercise all changed fields, including through apub federation.

Fixes #1385

* Add migration to fix blank-string post.url values to be null

This also then fixes #602

* Address review feedback

- Fixed some unwraps and err message formatting
- Bumped the `url` library to 2.2.1 to fix a bug with serde error
  messages
- Add unit tests for the two diesel option override functions
- Fix migration teardown by adding a no-op

* Rename lemmy_db_queries::Url to lemmy_db_queries::DbUrl

* fix compile error

* box PostOrComment variants
3 years ago
Dessalines efc9047f87 Done with user->person migrations, now to code. 3 years ago
Dessalines aba32917bd Merge branch 'main' into split_user_table 3 years ago
Felix Ableitner 72783edb17 In remove categories down migration, add default for category 3 years ago
Felix Ableitner 3141ad31de Remove categories (fixes #1429) 3 years ago
Dessalines 8088055d38
Fix aggregates time columns 2 (#1427)
* Adding a new comment sort. Fixes #1294

* Fixing a migration comment.

* Adding a comment for newest_comment_time_necro

* Make sure federated items set correct aggregates fields in trigger.

- Fixes #1402
3 years ago
Dessalines 0c4b57a6d0
Adding a new comment sort for posts. Fixes #1294 (#1425)
* Adding a new comment sort. Fixes #1294

* Fixing a migration comment.

* Adding a comment for newest_comment_time_necro
3 years ago
Dessalines a183815870 Adding a few more tables. 3 years ago
Dessalines d0bd02eea0 Starting on user_ to person migration. 3 years ago
nutomic 1a4e35eb50 Store activitypub endpoints in database (#162)
Address review comments

Store Activitypub urls in database (fixes #808)

Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/162
Co-Authored-By: nutomic <nutomic@noreply.yerbamate.ml>
Co-Committed-By: nutomic <nutomic@noreply.yerbamate.ml>
3 years ago
Dessalines 6bb4f0b41f
Adding forum sort for post_aggregates. Fixes #1312 (#1400)
* Adding forum sort for post_aggregates. Fixes #1312

* Changing sort name from forum to MostComments.
3 years ago
Dessalines 0fd0279543
Adding some recurring lemmy tasks. (#1386)
* Adding some recurring lemmy tasks.

- Add active users by day, week, month, and half year to site and
  community. Fixes #1195
- Periodically re-index the aggregates tables that use hot_rank.
  Fixes #1384
- Clear out old activities (> 6 months). Fixes #1133

* Some cleanup, recalculating actives every hour.
3 years ago
Nutomic 3d578f9df2
Use Url type for ap_id fields in database (fixes #1364) (#1371) 3 years ago
Dessalines 8f61a148f6 Fixing comment count necro-bump issue. 3 years ago
Dessalines 4fdcb57753 Report only local counts in site_view.
- Move open_registrations under top level.
- Fixes #1340
3 years ago
Dessalines 7a97fc370b Adding stickied to post_aggregates.
- Added more indexes to account for sorting by stickied first.
- Changed all order bys in the diesel views to use post_aggregates.
3 years ago
Dessalines d227000de3 Halfway done with hot rank indexes. 3 years ago
Dessalines a27b7f8d1f Fix site aggs. 3 years ago
Dessalines 2d7d9cf7d8 Some API cleanup, adding site_id to site aggregates. 3 years ago
Dessalines 6d96f105c6 Dropping the unecessary views and table triggers. 3 years ago
Dessalines 4f5e51beb5 Removing fast tables and old views. 3 years ago
Dessalines e4714627a4 Beginning to add new comment_view. 3 years ago
Dessalines bdd264cd5e Adding tests for post aggregates. 3 years ago
Dessalines eef93440d0 Starting to add post_view. 3 years ago
Dessalines dabcfca67b Adding tests for current aggregates. 3 years ago
Dessalines e371ec1dc4 Adding user aggregates tests. 3 years ago
Dessalines 9884927b8a Adding site aggregates unit test. 3 years ago
Dessalines f5bef3980a Adding hot rank function, possibly fixing views. 3 years ago
Dessalines efdcbc44c4 Starting to work on community view, 2 4 years ago
Dessalines 6d8f93d8a1 More user aggregates. 4 years ago
Dessalines d66f4e8ac0 Finishing up user aggregates. 4 years ago
Dessalines 37e7f1a9a8 Starting to work on user aggs. 4 years ago
Dessalines 7731479607 Adding SiteAggregates. 4 years ago
Dessalines ca7224c086 Starting on siteview. 4 years ago
nutomic 3ceeecc63e Better account deletion (fixes #730) (#143)
Also clear bio

Better account deletion (fixes #730)

Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/143
4 years ago
eiknat 9e604b4038 update/fix migration, add some doc
also run cargo fmt/clippy
4 years ago
eiknat 438414a64b add more details to the report views 4 years ago
eiknat 070efe72af add current context for reports 4 years ago
eiknat d6b1c8df2f reports: update db tables, combine api impl 4 years ago
eiknat 6d43202efb reports: initial reports api commit 4 years ago
Felix Ableitner 06e82fe761 Add pending status for federated follows 4 years ago
nutomic 7c51a36012 In activity table, remove `user_id` and add `sensitive` (#127)
Forgot to add migrations

Add `sensitive` column to activities table, so PMs arent served over HTTP

Remove user_id column from actvity table

Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/127
4 years ago
Felix Ableitner 99abc49040 Add /activities endpoint (ref #1220) 4 years ago
Dessalines a903cae00b Fixing hot_rank_active fast triggers. Fixes #1190 4 years ago
Dessalines fd257a6d39 Adding no conflict triggers. Fixes #1179 4 years ago
Dessalines ab17e0a9f3 Merge branch 'add-view-helper-functions' of https://github.com/eiknat/lemmy into eiknat-add-view-helper-functions 4 years ago
Dessalines 5c6258390c
Isomorphic docker (#1124)
* Adding a way to GetComments for a community given its name only.

* Adding getcomments to api docs.

* A first pass at locally working isomorphic integration.

* Testing out cargo-husky.

* Testing a fail hook.

* Revert "Testing a fail hook."

This reverts commit 0941cf1736.

* Moving server to top level, now that UI is gone.

* Running cargo fmt using old way.

* Adding nginx, fixing up docker-compose files, fixing docs.

* Trying to re-add API tests.

* Fixing prod dockerfile.

* Redoing nightly fmt

* Trying to fix private message api test.

* Adding CommunityJoin, PostJoin instead of joins from GetComments, etc.

- Fixes #1122

* Fixing fmt.

* Fixing up docs.

* Removing translations.

* Adding apps / clients to readme.

* Fixing main image.

* Using new lemmy-isomorphic-ui with better javascript disabled.

* Try to fix image uploads in federation test

* Revert "Try to fix image uploads in federation test"

This reverts commit a2ddf2a90b.

* Fix post url federation

* Adding some more tests, some still broken.

* Don't need gitattributes anymore.

* Update local federation test setup

* Fixing tests.

* Fixing travis build.

* Fixing travis build, again.

* Changing lemmy-isomorphic-ui to lemmy-ui

* Error in travis build again.

Co-authored-by: Felix Ableitner <me@nutomic.com>
4 years ago