diff options
| author | 8chan <admin@8chan.co> | 2015-03-14 22:03:08 -0700 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2016-05-06 12:40:37 +0200 |
| commit | 6da7f4d25aed8daf14f705e2acabbac8f755fe01 (patch) | |
| tree | 5ba1cd1471703d8f3c3746515964053a220e4b1e | |
| parent | ae4eb4d3d9c390d4c203a468313154aa59809e59 (diff) | |
No more country flags in <title>
| -rw-r--r-- | inc/lib/Twig/Extensions/Extension/Tinyboard.php | 1 | ||||
| -rw-r--r-- | templates/themes/catalog/index.rss | 2 | ||||
| -rw-r--r-- | templates/thread.html | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/inc/lib/Twig/Extensions/Extension/Tinyboard.php b/inc/lib/Twig/Extensions/Extension/Tinyboard.php index 028db438..3d964c71 100644 --- a/inc/lib/Twig/Extensions/Extension/Tinyboard.php +++ b/inc/lib/Twig/Extensions/Extension/Tinyboard.php @@ -17,6 +17,7 @@ class Twig_Extensions_Extension_Tinyboard extends Twig_Extension new Twig_SimpleFilter('extension', 'twig_extension_filter'), new Twig_SimpleFilter('sprintf', 'sprintf'), new Twig_SimpleFilter('capcode', 'capcode'), + new Twig_SimpleFilter('remove_modifiers', 'remove_modifiers'), new Twig_SimpleFilter('hasPermission', 'twig_hasPermission_filter'), new Twig_SimpleFilter('date', 'twig_date_filter'), new Twig_SimpleFilter('poster_id', 'poster_id'), diff --git a/templates/themes/catalog/index.rss b/templates/themes/catalog/index.rss index c187e45a..248b494a 100644 --- a/templates/themes/catalog/index.rss +++ b/templates/themes/catalog/index.rss @@ -7,7 +7,7 @@ <atom:link href="https://8ch.net/{{ board.uri }}/index.rss" rel="self" type="application/rss+xml"/> {% for post in recent_posts %} <item> - <title>{% if post.subject %}{{ post.subject|e }}{% else %}{{ post.body_nomarkup[:256]|e }}{% endif %}</title> + <title>{% if post.subject %}{{ post.subject|e }}{% else %}{{ post.body_nomarkup[:256]|remove_modifiers|e }}{% endif %}</title> <link>https://8ch.net/{{ board.uri }}/res/{{ post.id }}.html</link> <guid>https://8ch.net/{{ board.uri }}/res/{{ post.id }}.html</guid> <comments>https://8ch.net/{{ board.uri }}/res/{{ post.id }}.html</comments> diff --git a/templates/thread.html b/templates/thread.html index 4314fa5e..2ca81e2e 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -11,7 +11,7 @@ {% include 'header.html' %} - {% set meta_subject %}{% if config.thread_subject_in_title and thread.subject %}{{ thread.subject|e }}{% else %}{{ thread.body_nomarkup[:256]|e }}{% endif %}{% endset %} + {% set meta_subject %}{% if config.thread_subject_in_title and thread.subject %}{{ thread.subject|e }}{% else %}{{ thread.body_nomarkup[:256]|remove_modifiers|e }}{% endif %}{% endset %} <meta name="description" content="{{ board.url }} - {{ board.title|e }} - {{ meta_subject }}" /> <meta name="twitter:card" value="summary"> |
