1
0
Fork 1
mirror of https://github.com/mastodon/mastodon.git synced 2024-12-14 22:30:20 +00:00
Commit graph

83 commits

Author SHA1 Message Date
Robert R George a98a8ee93f
Update robots.txt to prevent crawling of domain blocks ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2024-12-02 08:03:24 +00:00
Yann 4635ce2926
Remove constant definition from global scope in embed.js () 2024-11-29 15:33:25 +00:00
Eugen Rochko c352ce6f45
Fix missing permission on new embeds making them unclickable () 2024-09-30 08:20:20 +00:00
Eugen Rochko 3d46f47817
Change embedded posts to use web UI ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2024-09-12 09:41:19 +00:00
Claire 7a84b76bb1
Drop favicon.ico generation () 2024-06-26 13:44:08 +00:00
Renaud Chaput 899eac1a92
Use modern ES syntax rather than .call () 2024-02-27 15:42:05 +00:00
Renaud Chaput c6684aa1e3
Use the assets pipeline to load inert.css () 2024-01-12 09:32:45 +00:00
Essem b6e353537b
Add new emojis from jdecked/twemoji 15.0 () 2024-01-11 16:15:08 +00:00
Foritus 405f141fe0
Change: Block GPTBot () 2023-08-09 11:58:46 +02:00
Nick Schonning 558ac411c4
Expand Stylelint glob to include CSS files () 2023-01-05 13:42:13 +01:00
Matt Hodges 4114a7088a
Embed js height fix ()
* only begin iframe reheight once document state is complete

* format

* lint fixes

* Update public/embed.js to use readystatechange event listener

Co-authored-by: Claire <claire.github-309c@sitedethib.com>

* Call loaded() if ready, otherwise add listenter

* lint fix

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2022-12-15 16:18:59 +01:00
Eugen Rochko e02812d5b6
Add assets from Twemoji 14.0 () 2022-11-04 16:08:41 +01:00
pea-sys c68e6b52d9
png optimization(loss less) () 2022-11-01 15:06:52 +01:00
Yamagishi Kazutoshi 81e1cc5fec
Replace to workbox-webpack-plugin from offline-plugin () 2022-08-25 20:10:01 +02:00
Eugen Rochko fe2d6fe105
Fix wrong aspect ratio of logo in icons () 2022-06-11 20:32:02 +02:00
Eugen Rochko 45aa5781ce
Change brand color and logotypes ()
- Add rake task for generating Apple/Android icons and favicons from SVG
- Add rake task for generating PNG icons and logos for e-mails from SVG
- Remove obsolete Microsoft icons and configuration
- Remove PWA shortcut icons
2022-06-09 22:25:23 +02:00
rinsuki 6e736f2452
fix: embed.js doesn't expands iframes height ()
also including some refactoring:
- add `// @ts-check`
- use Map to completely avoid prototype pollution
- assign random id to each iframe for reduce chance to brute-force attack, and leak of iframe counts
- check iframe.contentWindow and MessageEvent.source to validate message is coming from correct iframe (it works on latest Chrome/Firefox/Safari but I'm not sure this is allowed by spec)

follow-up of 
fix 
2022-05-04 03:20:44 +02:00
Gaelan Steele 74e20f22cd
Fix light-mode emoji borders. () 2022-04-29 19:23:03 +02:00
Rohan Sharma 4d6d4b43c6
Fixed prototype pollution bug and only allow trusted origin () 2022-02-01 17:34:48 +01:00
Eugen Rochko abd7b4636a
Add assets from Twemoji 13.1.0 ()
* Add assets from Twemoji 13.1.0

* Update emoji-mart
2021-06-01 14:35:49 +02:00
Claire e78d06eecf
Add border to 🚲 emoji () 2021-04-13 23:43:51 +02:00
Claire a8139ab016
Add borders to 📱 and 📲 emojis () 2021-03-01 21:22:54 +01:00
Marcin Mikołajczak 9342705e6b
Add app shortcuts ()
* Add app shortcuts

Signed-off-by: mkljczk <me@mkljczk.pl>

* Fix codeclimate issues

Signed-off-by: mkljczk <me@mkljczk.pl>

* Change shortcuts

Signed-off-by: mkljczk <me@mkljczk.pl>

* More consistent new-status icon

Signed-off-by: mkljczk <me@mkljczk.pl>
2020-12-15 02:04:56 +01:00
ThibG 91eecd1b3c
Add border around 🕺 emoji ()
Fixes 
2020-09-10 19:08:03 +02:00
ThibG f0b6ddd979
Add border around 🐞 emoji () 2020-08-31 23:30:27 +02:00
leo60228 e0f55f374c
Add emojis:generate_borders Rake task ()
* Add emojis:generate_borders Rake task

* Address review

* Border all dark emoji

* Combine stroke with filter to reduce artifacting

* Cleanup Camera with Flash

* Add stroke-linejoin="round"

The previous filter and tweaks were effectively a poor imitation of it.
There are no artifacts for any dark emoji now!

* Set stroke-width using property

This fixes old versions of Firefox.

* Store emoji in string instead of array

* Use separate arguments for each path segment

* Remove "background: black;"
2020-06-09 00:12:20 +02:00
ThibG e1629a7758
Remove 'unsafe-inline' from Content-Security-Policy style-src ()
* Make sure wicg-inert doesn't rely on inline CSS

* Remove unsafe-inline from style-src
2020-05-08 21:22:57 +02:00
D Anzorge 29f5353f8b
Update Twemoji to 12.1.5 ()
* Update Twemoji to 12.1.5

SVGs from Twemoji repo https://github.com/twitter/twemoji

* Update emoji_map.json to Unicode 12
2020-04-19 23:38:31 +02:00
koyu 823dcc4dc6 Updated Twemoji to 12.1.3 () 2019-11-11 00:04:24 +02:00
Eugen Rochko 28636f43e4
Add OCR tool to media editing modal () 2019-08-15 15:13:26 +02:00
ThibG c4f2433300 Disallow robots from indexing /interact/ ()
This does not provide any new information and may just triple the number
of crawled pages
2019-05-02 00:10:19 +02:00
Eugen Rochko 80388a3ffe
Change error graphic to hover-to-play ()
Fix 
2019-02-15 23:33:25 +01:00
nightpool a5992e5883 Change robots.txt to exclude only media proxy URLs ()
* Revert "Change robots.txt to exclude some URLs ()"

This reverts commit 80161f4351.

* Let's block media_proxy

/media_proxy/ is a dynamic route used for requesting uncached media, so it's
probably bad to let crawlers use it

* misleading comment
2019-02-14 03:11:47 +01:00
Eugen Rochko 80161f4351
Change robots.txt to exclude some URLs ()
- Exclude static assets
- Exclude uploaded files
- Exclude alternate versions of the profile page
- Exclude media proxy URLs
2019-02-13 21:28:18 +01:00
Dryusdan 17b928502a update twemojie to v2 () 2018-07-06 01:58:07 +02:00
Maciek Baron ca2cc556f1 Crush PNGs to reduce overall size () 2018-07-05 15:20:16 +02:00
Renato "Lond" Cerqueira 268d90e810 Rename emoji sheet to avoid caching issue () 2018-06-10 16:12:47 +02:00
Renato "Lond" Cerqueira 0c3ce41031 Update to emojimart 2.6.1 ()
* Update to emojimart 2.6.1
WIP using local updated version. Sheet comes from emoji-data@4.0.4,
file sheet_twitter_32_indexed_256.png.

* Update to 2.6.1 and uncompress data if needed

* Remove changes that were not needed

* Fix yarn lock file

* Match emojiToShowFilter behavior to new version of emoji-mart

* Fix codeclimate issue

* Match custom emoji behavior to new version of emoji-mart

* Replace emoji without shortcode in tests

* Fix code climate issues
2018-06-07 19:40:23 +02:00
Una e057c0e525 Optimize public/headers/missing.png () 2018-04-09 11:34:48 +02:00
Konrad Pozniak cd252b794e add new avatar placeholder missing.png () 2018-03-11 14:55:38 +01:00
David Yip 37b267e2ab Add artist, title, and date metadata to boop.{mp3,ogg} ()
For boop.mp3, this commit adds both ID3v1 and ID3v2 tags.  For boop.ogg,
we use Vorbis metadata.

In the case of boop.mp3, this also adds a cover image. Interestingly, it
didn't seem to affect the size of boop.mp3 much, despite being ~8k.
boop.ogg seemed to be much more affected and so no cover image was added
to that version.
2017-10-28 00:05:04 +09:00
Eugen Rochko 8e9911962d Change Android icon padding again to half of previous () 2017-10-12 00:58:14 +02:00
Eugen Rochko b17e571bc2 Add padding to Android icon, change Apple and MS icons () 2017-10-11 19:11:15 +02:00
Eugen Rochko 96c942e8ab Fix wrong dimensions on Android icon () 2017-10-10 12:41:30 +02:00
Eugen Rochko aafe55af81 Material app icon for Chrome () 2017-10-09 21:27:16 +02:00
Eugen Rochko 92e7815d1d Fix - Create symlink from public/500.html to public/assets/500.html () 2017-10-09 20:51:24 +02:00
Eugen Rochko 3b60832214 New error page graphic. Other error page improvements ()
- 500.html generated with admin-set default locale if set
- Error page `<title>` includes Mastodon site title
- 500 title changed to "This page is not
  correct" (ref: <https://www.youtube.com/watch?v=2VCAP_seh1A>)
- 500 content appended with "on our end" to make clear it's
  not user's fault
2017-09-25 23:05:54 +02:00
Eugen Rochko 2c8e3fbbfb Generate 500.html with assets:precompile, remove loading from Google Fonts () 2017-09-25 04:04:04 +02:00
Eugen Rochko 846cd4e838 Switch from EmojiOne to Twemoji, different emoji picker ()
* Switch from EmojiOne to Twemoji, different emoji picker

* Make emoji-mart use a local spritesheet

* Fix emojify test

* yarn manage:translations
2017-09-23 01:41:00 +02:00
Eugen Rochko 6867681c7c Add script to make embedded iframes autosize () 2017-09-09 16:23:44 +02:00