lain
98bfdba108
User: On registration, set `accepts_chat_messages` to true.
4 years ago
lain
fedfe8f7d6
ActivityPub: Handle clashing nicknames for the same ap id
If we get a new user (identified by ap_id) that would have the same
nickname as an existing user, give the existing user a nickname that
is prepended with the user id, as this will never clash.
This can happen when a user switches server software and that soft-
ware generates ap ids in a different way.
4 years ago
Mark Felder
67ab580553
Filter outstanding follower requests from deactivated accounts
4 years ago
Sergey Suprunenko
8d9e586887
Delete pending follow requests on user deletion
4 years ago
Egor Kislitsyn
317e2b8d61
Use atoms as keys in `ActivityPub.fetch_*` functions options
4 years ago
Roman Chvanikov
b973d0b2f0
Fix config setting to not affect other tests
4 years ago
lain
0c970a9d44
UserTest: Add test for user refreshing.
4 years ago
lain
23e248694d
Announcements: Fix all tests.
4 years ago
eugenijm
b7fc61e17b
Added the ability to upload background, logo, default user avatar, instance thumbnail, and the NSFW hiding image via AdminFE
4 years ago
lain
2328eff09c
UserTest: Hide warning in tests.
4 years ago
Alexander Strizhakov
1671864d88
return :visible instead of boolean
4 years ago
Alexander Strizhakov
e7bc2f980c
account visibility
4 years ago
Egor Kislitsyn
7803a85d2c
Add OpenAPI spec for StatusController
4 years ago
Alexander Strizhakov
287f781808
user deletion
4 years ago
rinpatch
e55876409b
Deactivate local users on deletion instead of deleting the record
Prevents the possibility of re-registration, which allowed to read
DMs of the deleted account.
Also includes a migration that tries to find any already deleted
accounts and insert skeletons for them.
Closes pleroma/pleroma#1687
4 years ago
lain
5da08c2b73
SideEffects: Fix comment
4 years ago
Egor Kislitsyn
6db52c3b36
Fix Oban warning
Warning example:
[warn] Expected Elixir.Pleroma.Workers.BackgroundWorker.perform/2 to return :ok, {:ok, value}, or {:error, reason}. Instead received: [error: "not found @user@server.party", error: "not found "] The job will be considered a success.
4 years ago
lain
7a3a88a13e
Streamer: Stream boosts to the boosting user.
4 years ago
rinpatch
c077ad0b33
Remove User.upgrade_changeset in favor of remote_user_creation
The two changesets had the same purpose, yet some changes were updated
in one, but not the other (`uri`, for example).
Also makes `Transmogrifier.upgrade_user_from_ap_id` be called from
`ActivityPub.make_user_from_ap_id` only when the user is actually
not AP enabled yet.
I did not bother rewriting tests that used `User.insert_or_update`
to use the changeset instead because they seemed to just test the implementation,
rather than behavior.
4 years ago
Haelwenn (lanodan) Monnier
e89078ac2a
User: remove source_data
4 years ago
rinpatch
d067eaa7b3
formatter.ex: Use Phoenix.HTML for mention/hashtag generation
Unlike concatenating strings, this makes sure everything is escaped.
Tests had to be changed because Phoenix.HTML runs attributes through
Enum.sort before generation for whatever reason.
4 years ago
Ivan Tashkinov
be9d18461a
FollowingRelationship storage & performance optimizations (state turned `ecto_enum`-driven integer, reorganized indices etc.).
4 years ago
Ivan Tashkinov
e743c22329
Fixed incorrect usage of "relations" as a short form of "relationships".
4 years ago
Ivan Tashkinov
1c05f539aa
Improved in-test `clear_config/n` applicability (setup / setup_all / in-test usage).
4 years ago
Ivan Tashkinov
ec3719f539
Improved in-test config management functions.
4 years ago
Haelwenn (lanodan) Monnier
6da6540036
Bump copyright years of files changed after 2020-01-07
Done via the following command:
git diff fcd5dd259a
--stat --name-only | xargs sed -i '/Pleroma Authors/c# Copyright © 2017-2020 Pleroma Authors <https:\/\/pleroma.social\/>'
4 years ago
Egor Kislitsyn
f446744a6a
Allow account registration without an email
4 years ago
Ivan Tashkinov
4f8c3462a8
Tweaks to `clear_config` calls in tests in order to prevent side effects on config during test suite execution.
4 years ago
rinpatch
40727b28a7
Merge branch 'fix/truncate-remote-user-fields' into 'develop'
Truncate remote user fields
See merge request pleroma/pleroma!1619
4 years ago
Maksim Pechnikov
108a39c876
updated error messages for authentication process
4 years ago
Maksim Pechnikov
70410dfafd
fix create service actor
4 years ago
Maksim Pechnikov
22fc271e23
init tag feed
4 years ago
Sadposter
c7cc80a9ee
obligatory format commit
4 years ago
Sadposter
fa97eddf8a
make follows take precedence over domain blocks
4 years ago
lain
f36724efb1
User: Never return nil for user follower counts.
4 years ago
Egor Kislitsyn
f595cfe623
Remove User.user_info/2
4 years ago
Ivan Tashkinov
1636cc5b7e
Removed users.info and remaining usages.
4 years ago
Egor Kislitsyn
d38ab4bb89
Fix user.following_count
4 years ago
Ivan Tashkinov
de892d2fe1
[ #1335 ] Reorganized users.subscribers as UserRelationship. Added tests for UserRelationship-related functionality.
4 years ago
Ivan Tashkinov
ba5cc30165
[ #1335 ] Implemented notification mutes and reblog mutes as UserRelationships. User to UserRelationship relations and functions refactoring.
4 years ago
Ivan Tashkinov
c31ddce51e
[ #1335 ] Reorganized `users.mutes` as relation to UserMute entity.
4 years ago
lain
8521553ad9
User: Don't let deactivated users authenticate.
4 years ago
Ivan Tashkinov
3db988250b
[ #1335 ] User: refactored :blocks field into :blocked_users relation.
Introduced UserBlock.
4 years ago
Maksim Pechnikov
4b7c11e3f9
excluded invisible actors from gets /api/v1/accounts/:id
4 years ago
kPherox
d1ae51b02a
Update test for get_recipients_from_activity
4 years ago
Ivan Tashkinov
7c7f90bc4f
[ #1304 ] Merged `develop`, handled User.Info.invisible.
4 years ago
Ivan Tashkinov
e8843974cb
[ #1304 ] Moved remaining fields from User.Info to User.
Misc. fixes / improvements.
4 years ago
Ariadne Conill
95871cb462
user: implement User.invisible?/1
4 years ago
Ariadne Conill
48059c03c9
fix up some tests
4 years ago
Ariadne Conill
4f82e42e4e
websub: remove entirely
4 years ago