aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-08-27Make activity search properly use GIN indexesTusooa Zhu
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
2021-08-14Merge branch ↵Haelwenn
'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
2021-08-14List available frontends also when no static/frontends folder is present yetIlja
* 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
2021-08-14Merge branch 'StealEmojiMRF_add_adminFE' into 'develop'Haelwenn
Add Admin-FE menu for StealEmojiPolicy See merge request pleroma/pleroma!3512
2021-08-14Merge branch 'builder-note' into 'develop'Haelwenn
CommonAPI.Utils.make_note_data/1 --> ActivityPub.Builder.note/1 See merge request pleroma/pleroma!3511
2021-08-14Builder.note/1: return {:ok, map(), keyword()} like other Builder functionsAlex Gleason
2021-08-14Add Admin-FE menu for StealEmojiPolicySam Therapy
2021-08-14CommonAPI.Utils.make_note_data/1 --> ActivityPub.Builder.note/1Alex Gleason
2021-08-13Merge branch 'weblate-pleroma-pleroma' into 'develop'Haelwenn
Translations update from Weblate See merge request pleroma/pleroma!3491
2021-08-13Translated using Weblate (Polish)marcin mikołajczak
Currently translated at 98.0% (102 of 104 strings) Translation: Pleroma/Pleroma backend Translate-URL: https://translate.pleroma.social/projects/pleroma/pleroma/pl/
2021-08-13Translated using Weblate (Polish)marcin mikołajczak
Currently translated at 75.0% (78 of 104 strings) Translation: Pleroma/Pleroma backend Translate-URL: https://translate.pleroma.social/projects/pleroma/pleroma/pl/
2021-08-13Merge branch 'streamer-crash-fix' into 'develop'Haelwenn
Streamer crash fix See merge request pleroma/pleroma!3508
2021-08-13Streamer: fix crash in MastodonAPI.StatusViewAlex Gleason
2021-08-13Merge branch 'dkuku-develop-patch-66061' into 'develop'rinpatch
Update dev.exs error message to write to stderr. See merge request pleroma/pleroma!3492
2021-08-13Merge branch 'bugfix/status-search-fallback' into 'develop'rinpatch
Activity.Search: resolve status on DB Timeout Closes #2566 See merge request pleroma/pleroma!3507
2021-08-12Activity.Search: fallback on status resolution on DB TimeoutHaelwenn (lanodan) Monnier
2021-08-11Merge branch 'nil-report-object-hotfix' into 'develop'Haelwenn
AdminAPI: hotfix for nil report objects See merge request pleroma/pleroma!3504
2021-08-11Merge branch 'bugfix/subscriptions-replies' into 'develop'Haelwenn
maybe_notify_subscribers: Normalize Object to check inReplyTo presence Closes #2732 See merge request pleroma/pleroma!3505
2021-08-11maybe_notify_subscribers: Don't create notifications from ingested messagesHaelwenn (lanodan) Monnier
2021-08-11AdminAPI: hotfix for nil report objectsAlex Gleason
2021-08-10Merge branch 'bugfix/change_password' into 'develop'Haelwenn
TwitterAPI: Make change_password require body params instead of query Closes #2740 See merge request pleroma/pleroma!3503
2021-08-10TwitterAPI: Make change_email require body params instead of queryHaelwenn (lanodan) Monnier
2021-08-10Merge branch 'bugfix/object-age-create' into 'develop'Haelwenn
ObjectAgePolicy: Fix pattern matching on published See merge request pleroma/pleroma!3500
2021-08-10TwitterAPI: Make change_password require body params instead of queryHaelwenn (lanodan) Monnier
Closes: https://git.pleroma.social/pleroma/pleroma/-/issues/2740
2021-08-10Merge branch 'docs_make_otp_recommendation_clearer' into 'develop'Haelwenn
Make the OPT recomendation clearer See merge request pleroma/pleroma!3485
2021-08-10Make the OPT recomendation clearerIlja
AFAIK OTP releases are the recomended way of installing, but * People seem unaware of that and use from source installations because they use the guide with the name of their distro * People don't know what OTP releases are or what it means I added a warning on all installation-from-source guides and added the same explanation on the two OTP pages (the miigration to OTP and installing OTP)
2021-08-10ObjectAgePolicy: Fix pattern matching on publishedHaelwenn (lanodan) Monnier
2021-08-09Merge branch 'fix/streaming-api-for-create-activity' into 'develop'Haelwenn
fix: stream out Create Activity Closes #2691 See merge request pleroma/pleroma!3499
2021-08-09Merge branch 'poll-notification' into 'develop'Haelwenn
MastodonAPI: Support poll notification See merge request pleroma/pleroma!3484
2021-08-09Merge branch 'simple_policy_reasons_for_instance_specific_policies' into ↵Haelwenn
'develop' Simple policy reasons for instance specific policies See merge request pleroma/pleroma!3314
2021-08-09fix: stream out Create ActivitykPherox
2021-08-08Merge branch 'chores/2.4.0-develop' into 'develop'Haelwenn
Mergeback: 2.4.0 See merge request pleroma/pleroma!3494
2021-08-08Merge branch 'release/2.4.0' into 'stable'v2.4.0Haelwenn
Release/2.4.0 See merge request pleroma/pleroma!3493
2021-08-08mix.exs: 2.4.50Haelwenn (lanodan) Monnier
2021-08-08Update PleromaFE Bundle (2.4.0)Haelwenn (lanodan) Monnier
based on 51d3d8d255de221f7ac99e41f2f8e56c7d6a21a9
2021-08-06CHANGELOG.md: Fix instances of 2020 being actually 2021matildepark
2021-08-06Improve readabilityEgor Kislitsyn
2021-08-06Quarantine placeholdersIlja
* kePlaceholder and valuePlaceholder of quarantined_instances where in wrong case, should be snake_case * The mrf simple and transparency exclusion were already OK
2021-08-06improve changelog entryIlja
2021-08-06Make transparency_exclusions use tuples in admin-feIlja
* Make it use tuples * I also changed the keys for key_placeholder and value_placeholder to use snake_case instead of camelCase
2021-08-06Add key- and valuePlaceholders for quarantined_instances and mrf_simpleIlja
* 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)
2021-08-06Add transparency_exclusions also to the breaking changesIlja
2021-08-06Change docsIlja
* ./configuration/mrf.md * Change example * ./configuration/cheatsheet.md * Change descriptions to include that a reason is given * CHANGELOG.md * Add as breaking change
2021-08-06quarantine instances infoIlja
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"}}}}`
2021-08-06Change what nodeinfo returns without breaking backwards compatibilityIlja
* Only for SimplePolicy for now * I added an extra mrf_simple_info key that has an object as value. The object contains only relevant extra info
2021-08-06Return maps in node_infoIlja
It's easiest (and imo most proper) to use tuples {"instance, "reason"} in BE, but for FE maps like %{"instance": "instance", "reason", "reason"} are better. I changed it so that node_info returns maps now for simple_policy and quarantined instances.
2021-08-06Add database migrationsIlja
* SimplePolicy * quarentine * transparency_exclusions
2021-08-06Fixed deprecation warning checksIlja
When a setting was deprecated, the code would stop checking for the rest of the possible deprications. This also meant that the settings weren't rewritten to the new settings for deprecated settings besides the first one.
2021-08-06config/description.exs: Update quarantine settings to tuplesIlja
2021-08-06make linter happyIlja