Use any custom WebFinger domain for page metadata #442
No reviewers
Labels
No labels
approved, awaiting change
bug
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs docs
needs tests
not a bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma#442
Loading…
Reference in a new issue
No description provided.
Delete branch "hufman/akkoma:metadata_webfinger"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Updates the og:title and twitter:title properties to use the WebFinger domain instead of the server hostname, which should make url previews show up a little more correctly in certain applications.
any reason why this hasn't been merged yet?
discord embeds show the hostname instead of the webfinger domain, as do embeds elsewhere
yes, the reason is that this PR has no tests in any form
it only passes because in test the config has the webfinger domain the same as the endpoint
without tests this cannot be merged
i left it thinking the OP would add them at some point, and seems they never did
That would have been helpful to know, I instead had the impression that the project was dead :)
I'll try to figure out how to add tests, Erlang is new to me so it will take a while.
eh? dead? there's activity constantly
@ -8,6 +8,7 @@ defmodule Pleroma.Web.WebFinger.WebFingerControllerTest do
import ExUnit.CaptureLog
https://akkoma.dev/AkkomaGang/akkoma/src/branch/develop/test/pleroma/web/metadata/utils_test.exs may be a more suitable place for this
I moved the unit tests as requested.
Is there any further feedback for this change?
there's no need to bump, it's been the weekend and it's only just now the end of the work day, I'll look at it when i get a free moment
tests do not pass
suggestions:
change_config
calls@localhost
@ -79,1 +79,4 @@
end
describe "user_name_string/1" do
test "it uses the Endpoint by default" do
this breaks all other tests that run after this one
@ -8,6 +8,7 @@ defmodule Pleroma.Web.WebFinger.WebFingerControllerTest do
import ExUnit.CaptureLog
import Pleroma.Factory
import Tesla.Mock
alias Pleroma.Web.Metadata.Utils
this is no longer required
but DW i can fix that
merged via
babb4b9a8f
Weird,
MIX_ENV=test mix test test/pleroma/web/metadata/
worked fine for me.Thanks for accepting!
the reason that worked is that that command only tests that particular subset of tests - changing the endpoint config fails other tests outside of that subset because config can persist between tests (and is actually a frequent pain point)
Pull request closed