lemmy/crates/api_common/src
Nutomic 6047257bfc
Move admin flag from person to local_user (fixes #3060) (#3403)
* Move admin flag from person to local_user (fixes #3060)

The person table is for federated data, but admin flag can only
apply to local users. Thats why it really belongs in the local_user
table. This will also prevent the federation code from accidentally
overwriting the admin flag

* fmt

* try to fix api tests

* lint

* fix person view

* ci

* ci

---------

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-08-24 05:40:08 -04:00
..
build_response.rs Replace Option<bool> with bool for PostQuery and CommentQuery (#3819) (#3857) 2023-08-11 11:13:14 +02:00
comment.rs Allow filtering posts and comments by whether they were liked/disliked - fixes #3401 (#3523) 2023-08-08 11:40:28 +02:00
community.rs add new flag to api (#3363) 2023-06-27 06:45:26 -04:00
context.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
custom_emoji.rs Improve api response times by doing send_activity asynchronously (#3493) 2023-07-10 12:27:49 +02:00
lib.rs Remove SendActivity and Perform traits, rely on channel (#3596) 2023-07-19 09:49:41 -04:00
person.rs Move admin flag from person to local_user (fixes #3060) (#3403) 2023-08-24 05:40:08 -04:00
post.rs Allow filtering posts and comments by whether they were liked/disliked - fixes #3401 (#3523) 2023-08-08 11:40:28 +02:00
private_message.rs Allow filtering PMs by sender (#3770) 2023-08-08 11:07:41 +02:00
request.rs Fixing broken SQL migration formatting. (#3800) 2023-08-03 11:07:35 +02:00
send_activity.rs Rewrite remaining federation actions, get rid of PerformCrud trait (#3794) 2023-08-02 12:52:41 -04:00
sensitive.rs Upgrade api_test deps (#2850) 2023-05-10 16:31:37 -04:00
site.rs Make resolve_object not require auth #3685 (#3716) 2023-07-26 12:17:42 -04:00
utils.rs Move admin flag from person to local_user (fixes #3060) (#3403) 2023-08-24 05:40:08 -04:00