Commit graph

9185 commits

Author SHA1 Message Date
d93f2986d4 Merge remote-tracking branch 'upstream/develop' into bnakkoma 2024-01-29 01:07:08 +09:00
Yonle
8a0e797cff ap userview: add outbox field.
Signed-off-by: Yonle <yonle@lecturify.net>
2023-12-15 16:31:51 +00:00
589890f18b Fix spell in API spec (requried->required)
How did this go unnoticed??
2023-11-25 07:13:04 +09:00
0bbcd4065f Support for searching local posts/users only 2023-11-15 08:45:53 +09:00
c76ebd4e3c Merge remote-tracking branch 'upstream/develop' into bnakkoma 2023-11-08 03:52:31 +09:00
35be52eb9f Support for user search via PGroonga 2023-11-03 05:42:14 +09:00
FloatingGhost
6cc523bd23 Correct email links to be absolute URLs 2023-11-02 11:49:03 +00:00
Rohan Kumar
36f4f18aa5
Add more image mimetypes to reverse proxy
Add JPEG-XL, AVIF, and WebP support to the reverse proxy. All three are
supported in WebKit browsers; the latter two are supported in Gecko and
Blink.
2023-11-01 17:47:52 -07:00
acbc326ab7 Expose the status of OpenSearch protocol support 2023-10-23 04:18:40 +09:00
9104458dd9 Support OpenSearch protocol 2023-10-22 04:43:12 +09:00
3b7ef1bad8 Add a setup question asking if the user wants to use AnalyzeMetadata 2023-09-27 05:32:18 +09:00
613940ad8d Run mix format 2023-09-27 05:30:19 +09:00
66e26882e8 Support the 'following' option on post searches 2023-09-27 05:23:06 +09:00
49eda427fd Make the availability of media search configurable 2023-09-27 04:28:18 +09:00
db16459e4d Improve support for favicon and PWA icons 2023-09-26 08:55:35 +09:00
dce9ecaa9a Merge branch 'develop' into itepechi 2023-09-16 08:11:30 +09:00
0ceee820a6 Add support for searching media status
w/ some refactors and updates
2023-09-16 07:18:09 +09:00
00c8a65879 Avoid dying when handling large payloads: the sequel 2023-09-09 07:14:38 +09:00
FloatingGhost
c8e08e9cc3 fix issue with API cascading domain blocks but not honouring them 2023-08-25 11:00:49 +01:00
FloatingGhost
98f0820ca4 MIX FORMAT 2023-08-15 23:26:22 +01:00
FloatingGhost
9bc0345e57 AND THAT ONE TOO AND ALL 2023-08-15 23:26:08 +01:00
FloatingGhost
f3cc60b202 INBOX NEEDS TO BE A FULL URL YOU IDIOT AM BAKA I SHOULD JUST COMMIT SUDOKU RIGHT NOW 2023-08-15 23:23:59 +01:00
FloatingGhost
063e3c0d34 Disallow nil hosts in should_federate 2023-08-15 23:12:04 +01:00
FloatingGhost
6cb40bee26 Migrate to phoenix 1.7 ()
Closes 

Co-authored-by: tusooa <tusooa@kazv.moe>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/626
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Co-committed-by: FloatingGhost <hannah@coffee-and-dreams.uk>
2023-08-15 10:22:18 +00:00
06bd9130e8 Merge branch 'develop' into itepechi 2023-08-13 04:38:02 +09:00
floatingghost
0b32beb051 Merge pull request 'meilisearch: Move published date to lower priority' () from norm/akkoma:meilisearch-order into develop
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/623
2023-08-12 14:36:53 +00:00
floatingghost
7bb41bffb3 Merge pull request 'Reload emoji when using mix pleroma.emoji gen-pack and get-packs' () from norm/akkoma:emoji-reload into develop
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/563
2023-08-12 14:07:23 +00:00
FloatingGhost
1bd3012c2d Fix compiler warnings 2023-08-12 15:03:43 +01:00
Joshua Goins
c22ecac567 mastodon_api: Add /api/v1/preferences endpoint
Implements the preferences endpoint in the Mastodon API, but returns
default values for most of the preferences right now. The only supported
preference we can access is default post visibility, and a relevant test
is added as well.
2023-08-12 09:28:24 -04:00
Norm
d79c92f9c6
meilisearch: Move published date to lower priority
Currently, Akkoma sorts by published date first before everything else.
This however makes search results pretty bad since Meilisearch uses a
bucket sort algorithm in order of the ranking rules specified:
https://www.meilisearch.com/docs/learn/core_concepts/relevancy#behavior

Since the `published` attribute is a unix timestamp, the resulting
buckets are pretty small so the other rules essentially have little to
no effect on the rankings of search results.

This fixes that issue by moving the `published:desc` rule further down
so it still sorts by date, but only after considering everything else.

AFAIK attribute and sort doesn't really affect results for Akkoma since
the only attribute considered is the `content` attribute and the `sort`
parameter isn't used in Akkoma searches. Everything else is made to
match more closely to Meilisearch's defaults.
2023-08-11 11:07:14 -04:00
FloatingGhost
165c2485ff Merge branch 'otp26' into develop 2023-08-09 14:35:06 +01:00
Clovis
fc3cc61768 Fix invalid Date HTTP header when signing fetch requests
https://akkoma.dev/AkkomaGang/akkoma/issues/503
2023-08-07 12:43:42 +00:00
FloatingGhost
7825798e32 Add XML matcher 2023-08-07 11:12:14 +01:00
af349b073a Deduplicate query_with 2023-08-07 03:53:53 +09:00
FloatingGhost
9723264fe5 Add URI matchers 2023-08-06 15:51:21 +01:00
FloatingGhost
368b22fd2f Ensure we can't crash out on unusual logger backend settings 2023-08-06 15:12:57 +01:00
aba4e6ea60 Replace map |> join with map_join 2023-08-06 22:17:17 +09:00
2634723958 Support for setting PGroonga indexing options 2023-08-06 06:16:38 +09:00
FloatingGhost
59af68c600 Ensure it doesn't break on elixir1.14 2023-08-05 14:11:27 +01:00
FloatingGhost
ec5db753b9 Prevent elixir compiler from yeeting our modules 2023-08-05 14:03:21 +01:00
mae
d868348fac Completely disable xml entity resolution 2023-08-05 12:32:05 +00:00
FloatingGhost
31d7cc9a9c Allow Pleroma.HTTP to connect to raw-HTTP without freaking mint out 2023-08-04 23:51:15 +01:00
FloatingGhost
8670d89316 Remove duplicated path
Fixes 
2023-08-04 22:39:11 +01:00
FloatingGhost
b4399574ca Merge remote-tracking branch 'norm/config-permissions' into develop 2023-08-04 22:31:11 +01:00
Mae
1f54bea564 Prevent XML parser from loading external entities 2023-08-04 22:24:17 +01:00
a41facc5b2 Remove stale todo comment 2023-08-05 06:08:15 +09:00
033e5e27d6 Allow configuration of supported languages during instance gen 2023-08-05 04:49:52 +09:00
dddc104fb5 Fix missing variable on instance gen 2023-08-05 04:49:18 +09:00
Haelwenn (lanodan) Monnier
4f57c87be4
instance gen: Reduce permissions of pleroma directories and config files
Original: 69caedc591
2023-08-04 14:13:50 -04:00
Haelwenn (lanodan) Monnier
ae03513934
Config: Restrict permissions of OTP config file
Original: 8cc8100120
2023-08-04 14:13:36 -04:00