summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2022-06-21Hide pleroma:report for non-privileged usersIlja
Before we deleted the notifications, but that was a side effect and didn't always trigger any more. Now we just hide them when an unprivileged user asks them.
2022-06-21Revert "Delete report notifs when demoting from superuser"Ilja
This reverts commit 89667189b840fc79d85336739e6b2512684d7be0 and cdc5bbe8369d4fc66d642bb3e845a237d11e34d7. This is a side effect when changing user role. The goal was to not have report notifications when someone isn't admin or moderator any more. But this won't be triggered when we change the privilege tags for a role, so we can't use this sollution any more. There was another solution to filter out report notifications during fetch. It wasn't merged because this seemed 'cleaner' at the time, but now it seems the better sollution. I'll add it in the next commit.
2022-06-21User.visible_for/2Ilja
According to the tests, this was only used for unconfirmed accounts. So this just needed to be restricted to users with privilege :user_activation
2022-06-21Validator for deleting statusses is now done with priviledge instead of ↵Ilja
superuser
2022-06-21delete statusses is now privileged by :status_deleteIlja
Instead of superusers, you now need a role with privilige :status_delete to delete other users statusses I also cleaned up some other stuff I saw
2022-06-21Add Pleroma.User.privileged?/2Ilja
This should eventually replace Pleroma.User.superuser?/1
2022-06-21Fix warning during test user_test.exsIlja
Fixed the warning [warning] Please change `clear_config([section], key: value)` to `clear_config([section, key], value)`
2022-06-21Add last priviligesIlja
I still had three endpoints I didn't really know what to do with them. I added them under separate tags * :instance_delete * :moderation_log_read * :stats_read I also checked and these are the last changes done by MR https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3480/diffs this is trying to fix
2022-06-21Add privilige :emoji_managementIlja
2022-06-21Add privilige :status_deleteIlja
It also allows to update a message, so it's not just deleting. I need a better name...
2022-06-21last off :statuses_readIlja
From the endpoints left to do, I believe these should be under :statuses_read. These should be the last for that privilege for this MR
2022-06-21Mark relevant tests synchronousIlja
One of the things we do during the tests is change the config. But that's global state and different tests were interfering. E.g. one test would set `clear_config([:instance, :admin_privileges], [:statuses_read])`, but while that runs, another test may do `clear_config([:instance, :admin_privileges], [:user_invite])`. Now the code for the first test checks the setting, and it finds `:user_invite` instead of `:statuses_read`. Now the modules where this happens are marked to run synchronously, so they don't interfere with each other.
2022-06-21Add privileges for :user_readIlja
2022-06-21Add privileges for :report_handleIlja
2022-06-21Add privileges for :user_inviteIlja
2022-06-21Add privileges for :user_activationIlja
2022-06-21Add privileges for :user_tagIlja
2022-06-21Remove privileged_staffIlja
Everything that was done through this setting, can now be set by giving the proper privileges to the roles.
2022-06-21Add priviledges for :statuses_readIlja
This was the last in :require_privileged_staff. I'll remove that in the next commit
2022-06-21Add priviledges for :user_credentialsIlja
I only moved the ones from the :require_privileged_staff block for now
2022-06-21Add privilege :user_deletionIlja
2022-06-21Add new setting and Plug to allow for privilege settings for staffIlja
2022-06-11Show original status at the first of historyTusooa Zhu
2022-06-11Send the correct update in streamerTusooa Zhu
get_create_by_ap_id_with_object() seems to fetch the old object. Why this happens needs further investigation.
2022-06-11Expose history and source apis to anon usersTusooa Zhu
2022-06-09Fix incorrectly cached content after editingTusooa Zhu
2022-06-08Return the corresponding object id in attachment viewTusooa Zhu
2022-06-08Add object id to uploaded attachmentsTusooa Zhu
2022-06-05Return update notification in mastodon apiTusooa Zhu
2022-06-05Create Update notificationsTusooa Zhu
2022-06-04Fix CommonAPITestTusooa Zhu
2022-06-04Expose content type of status sourcesTusooa Zhu
2022-06-03Fix SideEffectsTestTusooa Zhu
2022-06-03Show edited_at in MastodonAPI/showTusooa Zhu
2022-06-03Test that own edits are streamedTusooa Zhu
2022-06-03Stream out editsTusooa Zhu
2022-06-02Fix long report notes giving errors on creationTusooa Zhu
2022-06-01Inject history when object is refetchedTusooa Zhu
2022-06-01Strip internal fields in formerRepresentationTusooa Zhu
2022-05-31Implement mastodon api for editing statusTusooa Zhu
2022-05-31Add tlsv1.3 to suggestionsPierre-Louis Bonicoli
2022-05-30AdminAPI: Allow filtering reports by rule_idmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-05-30Apply, suggestions, use strings for actual Mastodon API compatibilitymarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-05-30Implement viewing sourceTusooa Zhu
2022-05-29Implement mastodon api for showing edit historyTusooa Zhu
2022-05-29Allow updating pollsTusooa Zhu
2022-05-29Record edit history for Note and Question UpdatesTusooa Zhu
2022-05-29Handle Note and Question UpdatesTusooa Zhu
2022-05-29Allow Updates by every actor on the same originTusooa Zhu
2022-05-18StealEmojiPolicy: fix String rejected_shortcodesHélène
* rejected_shortcodes is defined as a list of strings in the configuration description. As such, database-based configuration was led to handle those settings as strings, and not as the actually expected type, Regex. * This caused each message passing through this MRF, if a rejected shortcode was set and the emoji did not exist already on the instance, to fail federating, as an exception was raised, swiftly caught and mostly silenced. * This commit fixes the issue by introducing new behavior: strings are now handled as perfect matches for an emoji shortcode (meaning that if the emoji-to-be-pulled's shortcode is in the blacklist, it will be rejected), while still supporting Regex types as before.