summaryrefslogtreecommitdiff
path: root/lib/pleroma/web/common_api.ex
AgeCommit message (Collapse)Author
2024-09-06Dialyzer: the pattern can never match the typeMark Felder
The original error was for the chat controller: lib/pleroma/web/pleroma_api/controllers/chat_controller.ex:104:pattern_match The pattern can never match the type {:error, :content_too_long | :forbidden | :no_content | :not_found} | {:user, nil}. Improve typespecs for the Pipeline and apply them where it could be encountered
2024-08-07Fix CommonAPI.follow/2 which returned users in the reverse order they were ↵Mark Felder
provided to the function
2024-07-30Remove WorkerHelperMark Felder
2024-07-29Fix cancelling jobsMark Felder
2024-07-22Fix order of args for show_reblogs/2Mark Felder
2024-07-22Fix order of args for hide_reblogs/2Mark Felder
2024-07-22Fix order of args for unfollow/2Mark Felder
2024-07-22Fix order of args for follow/2Mark Felder
2024-07-22Fix order of args for unblock/2Mark Felder
2024-07-22Fix order of args for block/2Mark Felder
2024-07-22Fix order of args for vote/3Mark Felder
2024-07-22Fix order of args for thread_muted?/2Mark Felder
2024-07-22Fix order of args for add_mute/2Mark Felder
2024-07-22Fix order of args for remove_mute/2Mark Felder
2024-07-22Fix order of args for update/2Mark Felder
2024-07-22Fix order of args for favorite/2Mark Felder
2024-07-22Annotate public functions with typespecs and mark some functions as privateMark Felder
2024-07-20 Support cancelling jobs when UnreactingMark Felder
2024-07-20Support cancelling jobs when UnrepeatingMark Felder
2024-07-20Support cancelling jobs when UnfavoritingMark Felder
2024-07-20Cancel queued (undelivered) publishing jobs for an activity when deleting ↵Mark Felder
that activity.
2024-07-01Dialyzer: pattern can never match the typeMark Felder
2024-07-01Dialyzer: pattern can never match the type because it is covered by previous ↵Mark Felder
clauses.
2024-03-18Merge remote-tracking branch 'origin/develop' into instance_rulesmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-01-26Credo.Check.Readability.PredicateFunctionNamesMark Felder
This check was recently improved in Credo and it does make sense for readability. The offending functions in Pleroma have been renamed and a couple missing the ? suffix have been fixed as well.
2024-01-22MastodonAPI.Controller.StatusController: fix dialyzer errorMark Felder
lib/pleroma/web/mastodon_api/controllers/status_controller.ex:333:pattern_match The pattern can never match the type. Pattern: {:ok, _activity} Type: {:error, _}
2023-12-22Merge remote-tracking branch 'origin/develop' into instance_rulesmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2023-12-20Elixir 1.15: Chase the Logger.warn deprecationMark Felder
2023-09-03CommonAPI: Prevent users from accessing media of other usersMint
2023-07-02Fix handling report from a deactivated usertusooa
2023-05-25Fix deleting banned users' statusestusooa
2023-01-02Revert "Merge branch 'copyright-bump' into 'develop'"lain
This reverts merge request !3825
2023-01-01Bump copyright yearmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-12-18Fix CommonAPI delete function to use User.privileged? instead of User.superuser?Sean King
2022-12-18Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into ↵Sean King
fine_grained_moderation_privileges
2022-10-14CommonAPI: generate ModerationLog for all admin/moderator deletesHaelwenn (lanodan) Monnier
As a side-effect it also changes the ChatMessage delete ID to an Activity.id rather than MessageReference.id Closes: https://git.pleroma.social/pleroma/pleroma/-/issues/2958
2022-07-09Fix remote emoji in subject disappearing after editsTusooa Zhu
2022-07-01Rename privilege tagsIlja
I first focussed on getting things working Now that they do and we know what tags there are, I put some thought in providing better names I use the form <what_it_controls>_<what_it_allows_you_to_do> :statuses_read => :messages_read :status_delete => :messages_delete :user_read => :users_read :user_deletion => :users_delete :user_activation => :users_manage_activation_state :user_invite => :users_manage_invites :user_tag => :users_manage_tags :user_credentials => :users_manage_credentials :report_handle => :reports_manage_reports :emoji_management => :emoji_manage_emoji
2022-06-25Unify the logic of updating objectsTusooa Zhu
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-05-31Implement mastodon api for editing statusTusooa Zhu
2022-05-30Apply, suggestions, use strings for actual Mastodon API compatibilitymarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-05-16Allow submitting an array of rule_ids to /api/v1/reportsmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-02-25Copyright bump for 2022Sean King
2022-01-12WIP account endorsementsmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-10-06CI: Bump lint stage to elixir-1.12Haelwenn (lanodan) Monnier
Elixir 1.12 changed formatting rules, this allows to avoid having to rollback to run `mix format`
2021-04-19Fix error response which was breaking tests related to pinned postsMark Felder
2021-04-16Merge branch 'features/ingestion-ecto-tag' into 'develop'rinpatch
TagValidator: New See merge request pleroma/pleroma!3244
2021-04-01Insert string-hashtags in PipelineHaelwenn (lanodan) Monnier
Cannot be done in Ecto schemas because only one type is allowed in arrays, and needs to be done before the MRFs.
2021-03-25expanding AddRemoveValidatorAlexander Strizhakov