Alexander Strizhakov
0374df1d12
other files consistency
4 anos atrás
Alexander Strizhakov
e8e4034c48
metadata providers consistency
4 anos atrás
rinpatch
126461942b
User table: ensure bio is always a string
Gets rid of '|| ""' in multiple places and fixes #2067
3 anos atrás
Haelwenn
01a3f145d5
Merge branch 'bugfix/funkwhale-channel' into 'develop'
Fix profile url for funkwhale channels, removes one source_data use
Closes #1653
See merge request pleroma/pleroma!2333
4 anos atrás
Haelwenn (lanodan) Monnier
185520d1b4
Provide known-good user.uri, remove User.profile_url/1
4 anos atrás
Mark Felder
05da5f5cca
Update Copyrights
4 anos atrás
Maksim
92055941bd
Pleroma.Web.Metadata - tests
4 anos atrás
rinpatch
7f609ee8f4
OGP/TwitterCard: Add fallbacks in case the attachment key is nonexistent
4 anos atrás
Haelwenn (lanodan) Monnier
c42d34b2ec
[Credo] fix Credo.Check.Readability.MaxLineLength
5 anos atrás
Mark Felder
c984e8272a
Formatting
5 anos atrás
Mark Felder
ac7ef0999d
WIP: Fix Twitter Cards
Twitter cards were not passing any useful metadata. A few things were
being handled on Twitter's end by trying to match OpenGraph tags with
their own, but it wasn't working at all for media. This is an attempt to
fix that.
Common functions have been pulled out of opengraph and put into
utils. Twitter's functionality was entirely replaced with a direct copy
of Opengraph's and then modified as needed.
Profiles are now represented as Summary Cards
Posts with images are now represented as Summart with Large Image Cards
Posts with video and audio attachments are represented as Player Cards.
This now passes the Twitter Card Validator.
Validator and Docs are below
https://cards-dev.twitter.com/validator
https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/abouts-cards
5 anos atrás
Haelwenn (lanodan) Monnier
6a6a5b3251
de-group alias/es
5 anos atrás
Haelwenn (lanodan) Monnier
60ea29dfe6
Credo fixes: alias grouping/ordering
5 anos atrás
rinpatch
afd83db0d7
Provide local og:url for remote activities
5 anos atrás
rinpatch
997f4a5e09
Remove custom emojis and trailing whitespaces from previews
5 anos atrás
rinpatch
1b1af4798a
Use object instead of activity for metadata
5 anos atrás
rinpatch
a95d5da607
Don't show content if empty or zero width space
5 anos atrás
rinpatch
4d5f15cd42
Introduce optional unfurling of nsfw content
5 anos atrás
rinpatch
0256bd2f1d
Use object url instead of a hack
5 anos atrás
rinpatch
fd3a558230
Apply feld's patch
5 anos atrás
rinpatch
bb43f4cee9
Remove useless with in opengraph.ex
5 anos atrás
rinpatch
293f6a8b71
join us now and share the software~. Also tests
5 anos atrás
rinpatch
b44995866b
Replace map with reduce to remove nils
5 anos atrás
rinpatch
dd1432d695
Disable previews for any activity, but create
5 anos atrás
rinpatch
565caff3f4
cache HTML in OGP
5 anos atrás
rinpatch
9aa69e12b8
Add behaviours to TwitterCard, remove some dumb stuff in Formatter.truncate
5 anos atrás
rinpatch
2e630bea0d
Add twitter card, filter nsfw
5 anos atrás
rinpatch
70f140681f
Add space between name and nickname
5 anos atrás
rinpatch
e8eecd61b4
Formating
5 anos atrás
rinpatch
410fd9d774
Attach attachments
5 anos atrás
rinpatch
ff6c9a5c96
Introduce get_by_id in Activity, replace newlines with spaces
5 anos atrás
rinpatch
850912b06b
refactor opengraph to a different module with a behaviour
5 anos atrás
rinpatch
8745c8c990
remove useless newlines after every tag. Make domain.com/username provide opengraph too
5 anos atrás
rinpatch
2858fd2da2
add a fallback function
5 anos atrás
rinpatch
ce15e0659e
Fix some edge cases [nervous laughter]
5 anos atrás
rinpatch
4656f433f9
Move metadata.ex out of ostatus
5 anos atrás
raeno
b0c3211984
Scrub html from activity.content or user.bio for opengraph meta
5 anos atrás
raeno
46486595ff
Handle "users/:id" links as well. Fix comments in MR.
5 anos atrás
raeno
b5de7c4c4d
Remove oembed for now, will submit it in another MR. Fix warnings
5 anos atrás
raeno
018516d3f3
Refactor ostatus_controller, extract metatags redirection to Redirector itself. Set 'html' as default type for ostatus links
5 anos atrás
raeno
9b3a6cdb07
Extract opengraph/oembed into separate module
5 anos atrás