FloatingGhost
3f06ccc9e3
allow `source` from misskey
2 years ago
sn0w
60bfaed368
Allow reacting with emojis containing a number
2 years ago
FloatingGhost
0f5bea2465
Add emoji_url to notifications to allow rendering
...
Ref #5
2 years ago
FloatingGhost
2abf8c982e
fix secret key failure
2 years ago
FloatingGhost
24bf8c3977
mix format
2 years ago
FloatingGhost
32fbd2e4e3
fix all tests
2 years ago
FloatingGhost
c3ed86cd1e
fix emoji controller tests
2 years ago
FloatingGhost
142646426e
fix emoji tests
2 years ago
FloatingGhost
71f4281850
fix quoting of custom emoji
...
Fixes #3
2 years ago
FloatingGhost
ed58a6b070
run mix format
2 years ago
FloatingGhost
801f2b0fc5
Add capabilities for emoji reactions
...
Patch from helene@p.helene.moe
2 years ago
FloatingGhost
0f2bfeaea7
Enable mediaproxy by default
2 years ago
FloatingGhost
e910f21d8d
allow undoing
2 years ago
FloatingGhost
e724da2a42
remove io.inspects
2 years ago
FloatingGhost
c5467d04e4
add outbound reacts
2 years ago
FloatingGhost
ad0b8c095c
add custom emoji reaction support
2 years ago
FloatingGhost
f19c93cdaa
use tls1.3
2 years ago
FloatingGhost
6a19fbac2f
add copyright notice for forked files
3 years ago
FloatingGhost
0f6bece60d
Merge remote-tracking branch 'origin/patch/readd-mastofe' into develop
3 years ago
FloatingGhost
0d012ebea1
Revert "Merge branch 'remove/mastofe' into 'develop'"
...
This reverts commit 6b3842cf50
, reversing
changes made to 6b1282a829
.
3 years ago
FloatingGhost
8cc6359a85
Merge remote-tracking branch 'upstream/bookwyrm-entities' into develop
3 years ago
FloatingGhost
25b4395830
just drop unknown tags
3 years ago
FloatingGhost
34780cf182
Merge remote-tracking branch 'upstream/bookwyrm-entities' into develop
3 years ago
FloatingGhost
2cc6b1e1bd
Allow for varying name fields
3 years ago
FloatingGhost
5c48fe1138
make credo happy
3 years ago
FloatingGhost
92d3742072
Merge remote-tracking branch 'upstream/bookwyrm-entities' into develop
3 years ago
FloatingGhost
9ee27fb5ec
add bookwyrm entity tests
3 years ago
FloatingGhost
680c5d8d89
Add compatibility with bookwyrm's weird entities
3 years ago
FloatingGhost
3252ed0f54
format
3 years ago
FloatingGhost
4e7e95a17e
don't error out
3 years ago
FloatingGhost
4e8ee48cff
delete activities
3 years ago
FloatingGhost
12a171844b
Merge remote-tracking branch 'upstream/develop' into develop
3 years ago
marcin mikołajczak
1657db656c
AccountController.lookup: skip auth
...
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
3 years ago
marcin mikołajczak
0dd1caa841
AccountController.lookup: skip visibility check
...
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
3 years ago
marcin mikołajczak
746c9daa62
Merge remote-tracking branch 'pleroma/develop' into mastodon-lookup
...
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
3 years ago
marcin mikołajczak
f734579965
MastoAPI: Add `GET /api/v1/accounts/lookup`
...
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
3 years ago
Alex Gleason
de7f84deb3
Merge branch 'apps-api-endpoint' into 'develop'
...
Apps API endpoint
See merge request pleroma/pleroma!3583
3 years ago
Alex Gleason
7704a722c0
AppController: remove unnecessary `require Logger`
3 years ago
Alex Gleason
2e4a1c56c3
AppController: test creating with and without a user
3 years ago
Alex Gleason
f5c3d45120
Merge remote-tracking branch 'origin/develop' into apps-api-endpoint
3 years ago
Alex Gleason
138f5a4517
EnsureStaffPrivilegedPlug: don't let non-moderators through
3 years ago
Alex Gleason
a3fa987611
AdminAPI: fix duplicated routes
3 years ago
Alex Gleason
326575d5b7
Merge remote-tracking branch 'origin/develop' into finch
3 years ago
Alex Gleason
a659428024
Merge branch 'restricted-moderators' into 'develop'
...
AdminAPI: Optionally restrict moderators from accessing sensitive data
See merge request pleroma/pleroma!3578
3 years ago
Alex Gleason
6e27fc9c12
Merge branch 'log-slow-queries' into 'develop'
...
Log slow Ecto queries
See merge request pleroma/pleroma!3553
3 years ago
Ivan Tashkinov
08c0f09bad
Made slow queries logging disabled by default.
3 years ago
Alibek Omarov
f02715c4b2
Fix lint errors
3 years ago
Alibek Omarov
f66675f349
API: fix duplicate :get_password_token route
3 years ago
Alibek Omarov
1c223331fc
API: show info about privileged staff in instance metadata
3 years ago
Alibek Omarov
cd1041c3a4
API: optionally restrict moderators from accessing sensitive data
3 years ago
Ivan Tashkinov
3e9e7178bc
Configurability of slow queries logging ([:pleroma, :telemetry, :slow_queries_logging]). Adjusted log messages truncation to 65 kb (was default: 8 kb). Non-truncated logging of slow query params.
3 years ago
Lain Soykaf
4cf03046f5
Merge branch 'finch' of git.pleroma.social:pleroma/pleroma into finch
3 years ago
Lain Soykaf
6efbd08854
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into finch
3 years ago
Alex Gleason
913141379c
Merge branch 'profile-directory' into 'develop'
...
MastoAPI: Profile directory
See merge request pleroma/pleroma!3573
3 years ago
marcin mikołajczak
de006443f0
MastoAPI: Profile directory
3 years ago
Alex Gleason
db2bf55e9b
Merge remote-tracking branch 'origin/develop' into notice-routes
3 years ago
Alex Gleason
73609211a4
Merge branch 'account-notes' into 'develop'
...
MastoAPI: Add user notes on accounts
See merge request pleroma/pleroma!3540
3 years ago
Alex Gleason
b96a58ff28
Merge branch 'account-subscriptions' into 'develop'
...
MastoAPI: accept notify param in follow request
See merge request pleroma/pleroma!3555
3 years ago
marcin mikołajczak
9775955974
Merge remote-tracking branch 'origin/develop' into remote-follow-api
...
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
3 years ago
Alex Gleason
d9746ae4cb
Merge branch 'from/develop/tusooa/2802-propagate-reject' into 'develop'
...
Handle Reject for already-accepted Follows properly
Closes #2766 and #2802
See merge request pleroma/pleroma!3568
3 years ago
Alex Gleason
3f8fc34593
Merge remote-tracking branch 'origin/develop' into moderators
3 years ago
Alex Gleason
50892a198d
Merge branch 'mkljczk-develop-patch-64464' into 'develop'
...
Add "exposable_reactions" to features, if showing reactions
See merge request pleroma/pleroma!3523
3 years ago
Alex Gleason
b0d2b53934
Merge branch 'manifest' into 'develop'
...
Expose /manifest.json for PWA
Closes #882
See merge request pleroma/pleroma!3544
3 years ago
Ivan Tashkinov
e009950845
Slow queries logging improvements: added EXPLAIN results, listed params, improved stacktrace.
3 years ago
Alex Gleason
df5359aa72
Merge branch 'replies-count' into 'develop'
...
Fix replies count for remote replies
See merge request pleroma/pleroma!3541
3 years ago
Alex Gleason
d1510c98d7
Merge branch 'link-headers-chats' into 'develop'
...
Add link headers in ChatController.index2
See merge request pleroma/pleroma!3562
3 years ago
Alex Gleason
1ff9ffed83
Merge branch 'live-dashboard' into 'develop'
...
Add Phoenix LiveDashboard
See merge request pleroma/pleroma!3566
3 years ago
Alex Gleason
e4f9cb1c1b
Merge remote-tracking branch 'origin/develop' into manifest
3 years ago
Alex Gleason
bd853199d9
Merge branch 'v2-suggestions' into 'develop'
...
V2 suggestions
See merge request pleroma/pleroma!3547
3 years ago
Alex Gleason
7c1d804554
Merge branch 'fix-search-dos' into 'develop'
...
Search: limit number of results (prevent DoS)
See merge request pleroma/pleroma!3563
3 years ago
Tusooa Zhu
3d41ccc47b
Allow updating accepted follow activities in Web.ActivityPub.Utils.update_follow_state_for_all/2
...
Mastodon uses the Reject activity also for the purpose of removing
a follower, in addition to reject a follow request. We should
also update the original Follow activity in this case.
3 years ago
a1batross
31b9034a27
emoji/loader.ex: be more verbose about which emoji pack config is loading now
...
To avoid issue when one of the hundred JSON files is malformed and
administrator don't know which one
3 years ago
Mark Felder
5660bee2dc
Dirty hack to make mediaproxy functional by relying on Hackney for that part
3 years ago
FloatingGhost
1863ae59fb
format
3 years ago
FloatingGhost
415d9dd6f6
Merge remote-tracking branch 'origin/feature/elasticsearch' into develop
3 years ago
FloatingGhost
0c0ea169d4
Merge remote-tracking branch 'upstream/develop' into develop
3 years ago
FloatingGhost
3a9b83413e
Merge branch 'develop' into feature/elasticsearch
3 years ago
FloatingGhost
f3d9c58fef
Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma into develop
3 years ago
FloatingGhost
742b86fdaa
format
3 years ago
FloatingGhost
9134ef5ecb
add timestamp
3 years ago
FloatingGhost
2152832780
add timestamp
3 years ago
FloatingGhost
26cae62c7f
maybe
3 years ago
FloatingGhost
9d4727598d
fix remote hashtags
3 years ago
FloatingGhost
1745606ab5
maybe
3 years ago
FloatingGhost
418212c71c
fix remote hashtags
3 years ago
Alex Gleason
e1b89fe3aa
Merge remote-tracking branch 'origin/develop' into live-dashboard
3 years ago
Alex Gleason
29d80b39f2
Add Phoenix LiveDashboard
...
Co-authored-by: Egor Kislitsyn <egor@kislitsyn.com>
3 years ago
lain
6eb7d69e60
Merge branch 'delete-account-fix' into 'develop'
...
TwitterAPI: allow deleting one's own account with request body
Closes #2799 and #2746
See merge request pleroma/pleroma!3564
3 years ago
Lain Soykaf
4e98ba3c3a
Application: Actually start finch if it's needed
3 years ago
Lain Soykaf
abb62dd886
Application, dependencies: prepare for finch
3 years ago
sadposter
25920c10df
don't try indexing non-people
3 years ago
sadposter
93e41df75d
don't try indexing non-people
3 years ago
FloatingGhost
ccc5c59c50
re-add fetching by url
3 years ago
FloatingGhost
d5c8415496
re-add fetching by url
3 years ago
sadposter
c50ad91d31
fix empty queries returning 50 results
3 years ago
sadposter
7f30218b82
extra cool
3 years ago
sadposter
d1bb10c88e
fix empty queries returning 50 results
3 years ago
sadposter
8378c3a8bc
extra cool
3 years ago
FloatingGhost
0d7bbee430
add timeouts
3 years ago
FloatingGhost
bed6f4e12c
add timeouts
3 years ago
FloatingGhost
9d5d964bf8
merge
3 years ago
sadposter
cc4c5f22f4
fix inbound federation
3 years ago
sadposter
94c22baaa3
filter by user type
3 years ago
sadposter
8f78cb3050
Merge branch 'develop' of gitssh.ihatebeinga.live:IHBAGang/pleroma into develop
3 years ago
sadposter
5d901c337e
fix inbound federation
3 years ago
FloatingGhost
703f53c08f
Search through users and hashtags as well
3 years ago
FloatingGhost
a85bf5929b
add hashtag indexing
3 years ago
FloatingGhost
6ca70833f5
add user import
3 years ago
FloatingGhost
c03e8d46e8
Search through users and hashtags as well
3 years ago
FloatingGhost
8547cefaff
add hashtag indexing
3 years ago
Alex Gleason
8672ad6b00
TwitterAPI: allow deleting one's own account with request body
3 years ago
FloatingGhost
6bb19454fd
add user import
3 years ago
Alex Gleason
108dfd1f87
Search: limit number of results
3 years ago
sadposter
06ab00d625
fix buggos
3 years ago
FloatingGhost
a504e250a9
fully reference es
3 years ago
FloatingGhost
71126fea0c
fix multi-after-transaction
3 years ago
FloatingGhost
dbdf0c005e
pipeline it
3 years ago
sadposter
ef9dea66b2
fix bug in inbound
3 years ago
sadposter
e835212a7d
enforce visibility
3 years ago
sadposter
144c06487a
fix buggos
3 years ago
FloatingGhost
ee1a2fc451
fully reference es
3 years ago
FloatingGhost
67f8bdce4f
fix multi-after-transaction
3 years ago
FloatingGhost
7502da993b
pipeline it
3 years ago
sadposter
f341e68622
fix bug in inbound
3 years ago
sadposter
23c758bbe7
enforce visibility
3 years ago
FloatingGhost
0fbf7faf85
Remove IO inspect
3 years ago
FloatingGhost
de60b1f3c1
make search provider configurable
3 years ago
FloatingGhost
fce13cce46
add extra filters
3 years ago
FloatingGhost
449d8ff165
integrate search endpoint with ES
3 years ago
FloatingGhost
9002e5155b
Add import functionality
3 years ago
Alex Gleason
da83839dc1
AttachmentValidator: ingest width and height
3 years ago
Lain Soykaf
eb7bbe3fc8
Linting.
3 years ago
Finn Behrens
66b60f1ee2
move result into with guard
3 years ago
FloatingGhost
0fab887eee
make linter happy
3 years ago
FloatingGhost
47833e31ad
Remove IO inspect
3 years ago
FloatingGhost
ed3a866f94
make search provider configurable
3 years ago
marcin mikołajczak
dff435488d
Add link headers in ChatController.index2
...
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
3 years ago
FloatingGhost
345eb7b3f8
add extra filters
3 years ago
FloatingGhost
3478492945
integrate search endpoint with ES
3 years ago
FloatingGhost
c684265585
Add import functionality
3 years ago
Alex Gleason
2c96668a2c
Merge remote-tracking branch 'origin/develop' into fix-attachment-dimensions
3 years ago
Alex Gleason
3f03d71ea6
AttachmentValidator: ingest width and height
3 years ago
Lain Soykaf
ca8c676867
Linting.
3 years ago
Finn Behrens
8af53101fb
move result into with guard
3 years ago
marcin mikołajczak
c96e52b88c
Add 'notifying' to relationship for compatibility with Mastodon
...
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
3 years ago
marcin mikołajczak
64a4c147b1
MastoAPI: accept notify param in follow request
...
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
3 years ago
sadposter
6a6260f64e
re-enable deactivated check
3 years ago
FloatingGhost
db46913dcc
make linter happy
3 years ago
FloatingGhost
cd8bdbc761
Make deactivated user check into a subquery
...
Fixes #2792
3 years ago
sadposter
ca2bd8b72b
remove deactivated_users call
3 years ago
Alex Gleason
949a53e327
Log Ecto queries > 500ms
3 years ago
sadposter
bb54720778
add debug
3 years ago
sadposter
c85b278f1e
Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma into develop
3 years ago
Alex Gleason
8286ceb465
Merge remote-tracking branch 'origin/develop' into password-reset
3 years ago
Alex Gleason
5da4f33bf1
Restore POST /auth/password
3 years ago
marcin mikołajczak
cd5fb84b76
remote_interaction API endpoint
...
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
3 years ago
Alex Gleason
6519f59d91
v2 Suggestions: return `is_suggested` through the API
3 years ago
Alex Gleason
8dc1d2201a
Instance: add v2_suggestions feature
3 years ago
Alex Gleason
e5a7547fbe
v2 Suggestions: also filter out users you follow
3 years ago
Alex Gleason
437c1a5a52
v2 Suggestions: actually flter out dismissed suggestions
3 years ago
Alex Gleason
aee55b9a8b
v2 Suggestions: dismiss a suggestion
3 years ago
Alex Gleason
6c0484d571
AdminAPI: suggest a user through the API
3 years ago
Alex Gleason
e28d990ecb
v2 Suggestions: don't skip visibility check
3 years ago
Alex Gleason
b17360cd7c
v2 Suggestions: rudimentary API response
3 years ago
Alex Gleason
7e1caddc58
v2 Suggestions: return empty array
3 years ago
Alex Gleason
720198d569
Merge remote-tracking branch 'pleroma/develop' into manifest
3 years ago
Alex Gleason
cb9359335f
Expose /manifest.json for PWA
3 years ago
marcin mikołajczak
d64d1b1d45
Fix replies count for remote replies
...
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
3 years ago
rinpatch
588bcbac55
Apply 2 suggestion(s) to 2 file(s)
3 years ago
marcin mikołajczak
8e040e098b
Lint
...
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
3 years ago
marcin mikołajczak
106b5c2678
Fix a typo
...
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
3 years ago
marcin mikołajczak
40414bf177
MastoAPI: Add user notes on accounts
...
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
3 years ago
sadposter
a61207cf8f
Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma into develop
3 years ago
Alibek Omarov
04aca335aa
nodeinfo: report activeMonth and activeHalfyear users fields
3 years ago
lain
e2772d6bf1
Merge branch 'block-behavior' into 'develop'
...
Configurable block visibility, fixes #2123
Closes #2123
See merge request pleroma/pleroma!3242
3 years ago
lain
6e3df11693
Merge branch 'instance-deletion' into 'develop'
...
AdminAPI: endpoint to delete all content from a remote instance
See merge request pleroma/pleroma!3483
3 years ago
lain
6aff3d3204
Merge branch 'fix-object-deletion-timeout' into 'develop'
...
Fix Activity.delete_all_by_object_ap_id/1 timeout so users can be deleted
Closes #2704
See merge request pleroma/pleroma!3479
3 years ago
lain
bd77243981
Merge branch 'userfeed-fe-fallback' into 'develop'
...
UserController: fall back to frontend when user isn't found
Closes #2730
See merge request pleroma/pleroma!3515
3 years ago
Haelwenn (lanodan) Monnier
23e91ec8dd
activity_pub_controller: Fix misleading debug warning in post_inbox_fallback
3 years ago
sadposter
eb1c7d75f4
Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma into develop
3 years ago
Haelwenn
6b5c2d5f86
Merge branch 'refactor/group_validator_fields' into 'develop'
...
object_validators: Group common fields in CommonValidations
See merge request pleroma/pleroma!3384
3 years ago
Haelwenn (lanodan) Monnier
23161526d4
object_validators: Group common fields in CommonValidations
...
Notes:
- QuestionValidator didn't have a :name field but that seems like a mistake
- `_fields` functions can't inherit others because of some Validators
- bto/bcc fields were absent in activities, also seems like a mistake
(Well IIRC we don't or barely support bto/bcc anyway)
3 years ago
Mark Felder
3af7db9fd7
Fix typo
3 years ago
Haelwenn (lanodan) Monnier
a17910a6c6
CI: Bump lint stage to elixir-1.12
...
Elixir 1.12 changed formatting rules, this allows to avoid having to rollback to run `mix format`
3 years ago
Haelwenn
92a8ff59aa
Merge branch 'from/develop/tusooa/add-remove-emails' into 'develop'
...
Allow users to remove their emails if instance does not need email to register
See merge request pleroma/pleroma!3522
3 years ago
sadposter
bd9c9136f9
Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma into develop
3 years ago
marcin mikołajczak
555d7d57c9
Add "exposable_reactions" to features, if showing reactions
3 years ago
Haelwenn
6b3842cf50
Merge branch 'remove/mastofe' into 'develop'
...
Remove MastoFE from Pleroma, fixes #2625
Closes #2625
See merge request pleroma/pleroma!3392
3 years ago
sadposter
c31e491e99
Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma into develop
3 years ago
Tusooa Zhu
198250dcef
Allow users to remove their emails if instance does not need email to register
3 years ago
Mark Felder
181282fb2e
Remove unused Logger
3 years ago
sadposter
b202cf15d6
Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma into develop
3 years ago
Sean King
3117c60997
Make suggested change for create_response
3 years ago
Sean King
2e59cdd80f
Fix aliases sorting
3 years ago
Sean King
33f063204e
Add unit test for Pleroma API app controller
3 years ago
Sean King
d02cf7b0cd
Fix lint
3 years ago
Sean King
a14e1c0003
Move GET /api/v1/apps to GET /api/v1/pleroma/apps
3 years ago
Sean King
eab6291094
Require follow and read OAuth scopes for GET /api/v1/apps
3 years ago
someone
cc4f20b130
mix pleroma.database set_text_search_config now runs concurrently and infinitely
...
Backport of: https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3514
3 years ago
Ilja
20084329ea
Selecting MRF policies didn't work as intended any more
...
* Policies were put under a new module (Pleroma.Web.ActivityPub.MRF.Policy instead of Pleroma.Web.ActivityPub.MRF), but this wasn't changed in the Pleroma.Web.ActivityPub.MRF @mrf_config_descriptions
* I don't have a unit test to prevent similar problems in the future because I don't find a proper way to do it
* The descriptions in the unit tests are defined in the unit tests, so if someone changes module names in the code, the tests wont see it
* The list is generated in Pleroma.Docs.Generator.list_behaviour_implementations, but I can't do a check in the when clause of the function to see if the provided module is a behaviour or not.
Backport of: https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3509
3 years ago
Tusooa Zhu
bd0eb1c675
Make activity search properly use GIN indexes
...
The original approach to search in GIN indexes is to use
`to_tsvector(text)` in the WHERE clause of the query. According to
postgres docs [pdoc], this method does not make use of the index,
while `to_tsvector(config, text)` does. This commit changed the
query to use the two-argument `to_tsvector()`.
[pdoc]: https://www.postgresql.org/docs/12/textsearch-tables.html
To obtain the search config in use, we make a query to the db first.
The `::regconfig::oid` hack is needed because Postgrex does not support
regconfig type directly [postgrexbug]. I use the conversion from and to
`oid` instead of `text` because I tested in the actual DB and querying
using the conversion via `text` is slow just as the one-argument
`to_tsvector()` variant.
[postgrexbug]: https://github.com/elixir-ecto/postgrex/issues/502
Backport of: https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3519
Closes: https://git.pleroma.social/pleroma/pleroma/-/issues/2758
3 years ago
Ilja
53b0dd4ecc
List available frontends also when no static/frontends folder is present yet
...
* To see what front ends are installed, it ls static/frontends. When this folder doesn't exists yet, it will return an empty array.
* Installing still works since the folder is created during installation already
Backport of: https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3510
3 years ago
Sam Therapy
09c42ce13e
Add Admin-FE menu for StealEmojiPolicy
...
Backport of: https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3512
3 years ago
Haelwenn
689a59f41f
Merge branch 'set_text_search_config_timeout' into 'develop'
...
mix pleroma.database set_text_search_config now runs concurrently and infinitely
See merge request pleroma/pleroma!3514
3 years ago
Haelwenn
bc62a35282
Merge branch 'features/ingestion-no-nil' into 'develop'
...
ObjectValidator.stringify_keys: filter out nil values
See merge request pleroma/pleroma!3506
3 years ago
Haelwenn
6633ec816f
Merge branch 'admin_fe_dont_list_mrf_policies_any_more' into 'develop'
...
Selecting MRF policies didn't work as intended any more
Closes admin-fe#198
See merge request pleroma/pleroma!3509
3 years ago
Tusooa Zhu
a9984c6da7
Make activity search properly use GIN indexes
...
The original approach to search in GIN indexes is to use
`to_tsvector(text)` in the WHERE clause of the query. According to
postgres docs [pdoc], this method does not make use of the index,
while `to_tsvector(config, text)` does. This commit changed the
query to use the two-argument `to_tsvector()`.
[pdoc]: https://www.postgresql.org/docs/12/textsearch-tables.html
To obtain the search config in use, we make a query to the db first.
The `::regconfig::oid` hack is needed because Postgrex does not support
regconfig type directly [postgrexbug]. I use the conversion from and to
`oid` instead of `text` because I tested in the actual DB and querying
using the conversion via `text` is slow just as the one-argument
`to_tsvector()` variant.
[postgrexbug]: https://github.com/elixir-ecto/postgrex/issues/502
BUG: https://git.pleroma.social/pleroma/pleroma/-/issues/2758
3 years ago
Sean King
baa8196fc9
Fix API spec, add app schema
3 years ago
Sean King
ba6914f90a
Fix formatting in app_operation.ex
3 years ago
Sean King
6519732045
GET /api/v1/apps endpoint
3 years ago
Alex Gleason
b11dbbf403
UserController: fall back to frontend when user isn't found
3 years ago
someone
4b940e441a
mix pleroma.database set_text_search_config now runs concurrently and infinitely
3 years ago
Haelwenn
84ec0fbeaa
Merge branch 'show_frontends_also_when_no_static_frontends_folder_is_created_yet' into 'develop'
...
List available frontends also when no static/frontends folder is present yet
Closes admin-fe#201
See merge request pleroma/pleroma!3510
3 years ago
Ilja
f9bafc17fb
List available frontends also when no static/frontends folder is present yet
...
* To see what front ends are installed, it ls static/frontends. When this folder doesn't exists yet, it will return an empty array.
* Installing still works since the folder is created during installation already
3 years ago
Haelwenn
2d9f803dc6
Merge branch 'StealEmojiMRF_add_adminFE' into 'develop'
...
Add Admin-FE menu for StealEmojiPolicy
See merge request pleroma/pleroma!3512
3 years ago
Haelwenn
773708cfe8
Merge branch 'builder-note' into 'develop'
...
CommonAPI.Utils.make_note_data/1 --> ActivityPub.Builder.note/1
See merge request pleroma/pleroma!3511
3 years ago
Alex Gleason
ba6049aa81
Builder.note/1: return {:ok, map(), keyword()} like other Builder functions
3 years ago
Sam Therapy
b901b73057
Add Admin-FE menu for StealEmojiPolicy
3 years ago
Alex Gleason
a2eacfc525
CommonAPI.Utils.make_note_data/1 --> ActivityPub.Builder.note/1
3 years ago
Ilja
5049b4272e
Selecting MRF policies didn't work as intended any more
...
* Policies were put under a new module (Pleroma.Web.ActivityPub.MRF.Policy instead of Pleroma.Web.ActivityPub.MRF), but this wasn't changed in the Pleroma.Web.ActivityPub.MRF @mrf_config_descriptions
* I don't have a unit test to prevent similar problems in the future because I don't find a proper way to do it
* The descriptions in the unit tests are defined in the unit tests, so if someone changes module names in the code, the tests wont see it
* The list is generated in Pleroma.Docs.Generator.list_behaviour_implementations, but I can't do a check in the when clause of the function to see if the provided module is a behaviour or not.
3 years ago
Alex Gleason
01175ef498
Streamer: fix crash in MastodonAPI.StatusView
...
Backport of: https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3508
3 years ago
Haelwenn (lanodan) Monnier
27e1e4c742
Activity.Search: fallback on status resolution on DB Timeout
...
Backport of: https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3507
3 years ago
Alex Gleason
e117551169
AdminAPI: hotfix for nil report objects
...
Backport of: https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3504
3 years ago
Haelwenn (lanodan) Monnier
bb2d5879cc
maybe_notify_subscribers: Don't create notifications from ingested replies
...
Backport of: https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3505
3 years ago
Haelwenn (lanodan) Monnier
0e2aebd036
TwitterAPI: Make change_email require body params instead of query
...
Backport of: https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3503
3 years ago
Haelwenn (lanodan) Monnier
3961422f85
TwitterAPI: Make change_password require body params instead of query
...
Backport of: https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3503
3 years ago
Haelwenn (lanodan) Monnier
8baaa36a16
ObjectAgePolicy: Fix pattern matching on published
...
Backport of: https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3500
3 years ago
kPherox
34606d609d
fix: stream out Create Activity
...
Backport of: https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3499
3 years ago
Haelwenn
61ba54897e
Merge branch 'streamer-crash-fix' into 'develop'
...
Streamer crash fix
See merge request pleroma/pleroma!3508
3 years ago
Alex Gleason
b7bbf42acd
Streamer: fix crash in MastodonAPI.StatusView
3 years ago
rinpatch
7afabe1cc6
Merge branch 'bugfix/status-search-fallback' into 'develop'
...
Activity.Search: resolve status on DB Timeout
Closes #2566
See merge request pleroma/pleroma!3507
3 years ago
Haelwenn (lanodan) Monnier
6455b967ec
Activity.Search: fallback on status resolution on DB Timeout
3 years ago
Haelwenn
3a7b54be4a
Merge branch 'nil-report-object-hotfix' into 'develop'
...
AdminAPI: hotfix for nil report objects
See merge request pleroma/pleroma!3504
3 years ago
Haelwenn (lanodan) Monnier
61d233921c
ObjectValidator.stringify_keys: filter out nil values
3 years ago
Haelwenn
3ca39ccf69
Merge branch 'bugfix/subscriptions-replies' into 'develop'
...
maybe_notify_subscribers: Normalize Object to check inReplyTo presence
Closes #2732
See merge request pleroma/pleroma!3505
3 years ago
Haelwenn (lanodan) Monnier
436fac3bac
maybe_notify_subscribers: Don't create notifications from ingested messages
3 years ago
Alex Gleason
7247c29653
AdminAPI: hotfix for nil report objects
3 years ago
Haelwenn
7c1243178b
Merge branch 'bugfix/change_password' into 'develop'
...
TwitterAPI: Make change_password require body params instead of query
Closes #2740
See merge request pleroma/pleroma!3503
3 years ago
Haelwenn (lanodan) Monnier
197cdebca9
TwitterAPI: Make change_email require body params instead of query
3 years ago
Haelwenn
8679a57a71
Merge branch 'bugfix/object-age-create' into 'develop'
...
ObjectAgePolicy: Fix pattern matching on published
See merge request pleroma/pleroma!3500
3 years ago
Haelwenn (lanodan) Monnier
09dcb2b522
TwitterAPI: Make change_password require body params instead of query
...
Closes: https://git.pleroma.social/pleroma/pleroma/-/issues/2740
3 years ago
Haelwenn (lanodan) Monnier
c64eae40a2
ObjectAgePolicy: Fix pattern matching on published
3 years ago
Haelwenn
f4af74b0fc
Merge branch 'fix/streaming-api-for-create-activity' into 'develop'
...
fix: stream out Create Activity
Closes #2691
See merge request pleroma/pleroma!3499
3 years ago
Haelwenn
901204df22
Merge branch 'poll-notification' into 'develop'
...
MastodonAPI: Support poll notification
See merge request pleroma/pleroma!3484
3 years ago
kPherox
ee5def34da
fix: stream out Create Activity
3 years ago
Sean King
1841bd8383
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into remove/mastofe
3 years ago
Egor Kislitsyn
ad09bdb376
Improve readability
3 years ago
Ilja
b0926a71b2
Make transparency_exclusions use tuples in admin-fe
...
* Make it use tuples
* I also changed the keys for key_placeholder and value_placeholder to use snake_case instead of camelCase
3 years ago
Ilja
f4028c908c
Add key- and valuePlaceholders for quarantined_instances and mrf_simple
...
* I also added for keywordpolicy as well now. It was done in the admin-fe, but is better to be done here
* I also added comments to explain why we did the _info keys (backwards compatibility)
3 years ago
Ilja
03030b47c2
quarantine instances info
...
Added a new field in the nodeinfo called quarantined_instances_info
This holds an object like `"quarantined_instances_info":{"quarantined_instances":{"quar.inst":{"reason":"whatever reason"}}}}`
3 years ago