Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Fiat Tux
Hat softwares
Lutim
Commits
4193f03d
Verified
Commit
4193f03d
authored
May 21, 2018
by
Luc Didry
Committed by
Luc Didry
Jul 29, 2018
Browse files
Remove @framasky as default tweet_card_via setting
parent
8a92ef95
Changes
6
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
4193f03d
...
...
@@ -9,6 +9,7 @@ Revision history for Lutim
- Fix scroll-to-top when clicking on delete image
- Add CSP header
- Add X-Content-Type-Options, X-XSS-Protection, X-Frame-Options headers
- Remove @framasky as default tweet_card_via setting
0.10.4 2018-05-07
- Fix bug in cache system that would allow someone to view an image with an incorrect decryption key
...
...
lib/Lutim.pm
View file @
4193f03d
...
...
@@ -32,7 +32,6 @@ sub startup {
length
=>
8
,
always_encrypt
=>
0
,
anti_flood_delay
=>
5
,
tweet_card_via
=>
'
@framasky
',
max_file_size
=>
10
*
1024
*
1024
,
https
=>
0
,
proposed_delays
=>
'
0,1,7,30,365
',
...
...
lib/Mounter.pm
View file @
4193f03d
...
...
@@ -27,7 +27,6 @@ sub startup {
length
=>
8
,
always_encrypt
=>
0
,
anti_flood_delay
=>
5
,
tweet_card_via
=>
'
@framasky
',
max_file_size
=>
10
*
1024
*
1024
,
https
=>
0
,
proposed_delays
=>
'
0,1,7,30,365
',
...
...
lutim.conf.template
View file @
4193f03d
...
...
@@ -51,8 +51,8 @@
# twitter account which will appear on twitter cards
# see https://dev.twitter.com/docs/cards/validation/validator to register your Lutim instance on twitter
# optional, default
is @framasky
#tweet_card_via => '@f
ramasky
',
# optional,
no
default
#tweet_card_via => '@f
oo
',
# max image size, in octets
# you can write it 10*1024*1024
...
...
themes/default/lib/Lutim/I18N/lutim.pot
View file @
4193f03d
...
...
@@ -32,11 +32,11 @@ msgstr ""
msgid "-or-"
msgstr ""
#: lib/Lutim.pm:2
20
lib/Lutim/Command/cron/stats.pm:151 lib/Lutim/Command/cron/stats.pm:165 lib/Lutim/Command/cron/stats.pm:182 themes/default/templates/index.html.ep:5 themes/default/templates/partial/raw.js.ep:25 themes/default/templates/partial/raw.js.ep:8 themes/default/templates/raw.html.ep:10
#: lib/Lutim.pm:2
19
lib/Lutim/Command/cron/stats.pm:151 lib/Lutim/Command/cron/stats.pm:165 lib/Lutim/Command/cron/stats.pm:182 themes/default/templates/index.html.ep:5 themes/default/templates/partial/raw.js.ep:25 themes/default/templates/partial/raw.js.ep:8 themes/default/templates/raw.html.ep:10
msgid "1 year"
msgstr ""
#: lib/Lutim.pm:21
9
lib/Lutim/Command/cron/stats.pm:148 lib/Lutim/Command/cron/stats.pm:162 lib/Lutim/Command/cron/stats.pm:179 themes/default/templates/index.html.ep:4 themes/default/templates/partial/for_my_delay.html.ep:13 themes/default/templates/partial/lutim.js.ep:149 themes/default/templates/partial/raw.js.ep:22 themes/default/templates/partial/raw.js.ep:5 themes/default/templates/raw.html.ep:7
#: lib/Lutim.pm:21
8
lib/Lutim/Command/cron/stats.pm:148 lib/Lutim/Command/cron/stats.pm:162 lib/Lutim/Command/cron/stats.pm:179 themes/default/templates/index.html.ep:4 themes/default/templates/partial/for_my_delay.html.ep:13 themes/default/templates/partial/lutim.js.ep:149 themes/default/templates/partial/raw.js.ep:22 themes/default/templates/partial/raw.js.ep:5 themes/default/templates/raw.html.ep:7
msgid "24 hours"
msgstr ""
...
...
@@ -503,7 +503,7 @@ msgstr ""
msgid "core developer"
msgstr ""
#: lib/Lutim.pm:21
8
lib/Lutim/Command/cron/stats.pm:147 lib/Lutim/Command/cron/stats.pm:161 lib/Lutim/Command/cron/stats.pm:178 themes/default/templates/index.html.ep:3 themes/default/templates/partial/raw.js.ep:21 themes/default/templates/partial/raw.js.ep:4 themes/default/templates/raw.html.ep:6
#: lib/Lutim.pm:21
7
lib/Lutim/Command/cron/stats.pm:147 lib/Lutim/Command/cron/stats.pm:161 lib/Lutim/Command/cron/stats.pm:178 themes/default/templates/index.html.ep:3 themes/default/templates/partial/raw.js.ep:21 themes/default/templates/partial/raw.js.ep:4 themes/default/templates/raw.html.ep:6
msgid "no time limit"
msgstr ""
...
...
themes/default/templates/twitter.html.ep
View file @
4193f03d
...
...
@@ -15,7 +15,9 @@
<meta
property=
"og:image"
content=
"<%= $abs %>"
/>
<meta
property=
"og:image:url"
content=
"<%= $abs %>"
/>
<meta
property=
"og:image:type"
content=
"<%= $mimetype %>"
/>
% if (config('tweet_card_via')) {
<meta
name=
"twitter:site"
content=
"<%= config('tweet_card_via') %>"
>
% }
<meta
name=
"twitter:image:src"
content=
"<%= $abs %>"
>
% if ($g) {
<meta
name=
"twitter:card"
content=
"player"
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment