121 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224
  1. <!DOCTYPE html>
  2. <html>
  3. <head data-suburl="">
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
  6. <meta name="author" content="diogo" />
  7. <meta name="description" content="gnu-social - GNU social is a social communication software used in federated social networks. It is widely supported and has a large userbase. It is already used by the Free Software Foundation." />
  8. <meta name="keywords" content="go, git, self-hosted, gogs">
  9. <meta name="referrer" content="no-referrer" />
  10. <meta name="_csrf" content="I36yKTb5Uogt6a6FqcAjOkKtDTE6MTYwNDc5MjMyNDc1MTk4ODI0OA==" />
  11. <meta name="_suburl" content="" />
  12. <meta property="og:url" content="https://notabug.org/diogo/gnu-social" />
  13. <meta property="og:type" content="object" />
  14. <meta property="og:title" content="diogo/gnu-social">
  15. <meta property="og:description" content="GNU social is a social communication software used in federated social networks. It is widely supported and has a large userbase. It is already used by the Free Software Foundation.">
  16. <meta property="og:image" content="https://notabug.org/avatars/12290" />
  17. <link rel="shortcut icon" href="/img/favicon.png" />
  18. <script src="/js/jquery-1.11.3.min.js"></script>
  19. <script src="/js/libs/jquery.are-you-sure.js"></script>
  20. <link href="/img/icon-48.ico" rel="icon" type="image/x-icon" />
  21. <link href="/img/icon-60.png" rel="apple-touch-icon">
  22. <link href="/img/icon-76.png" rel="apple-touch-icon" sizes="76x76">
  23. <link href="/img/icon-120.png" rel="apple-touch-icon" sizes="120x120">
  24. <link href="/img/icon-152.png" rel="apple-touch-icon" sizes="152x152">
  25. <link href="/img/icon-240.png" rel="apple-touch-icon" sizes="240x240">
  26. <link rel="stylesheet" href="/assets/font-awesome-4.6.3/css/font-awesome.min.css">
  27. <link rel="stylesheet" href="/assets/octicons-4.3.0/octicons.min.css">
  28. <link rel="stylesheet" href="/css/semantic-2.2.13.min.css">
  29. <link rel="stylesheet" href="/css/gogs.css?v=6fc9e85aa88133794d3434ea74aa557a">
  30. <link rel="stylesheet" href="/css/notabug.css">
  31. <script src="/js/semantic-2.2.13.min.js"></script>
  32. <script src="/js/gogs.js?v=6fc9e85aa88133794d3434ea74aa557a"></script>
  33. <title>Plugin &#34;SensitiveContent&#34; messes up proportion in attachments - NotABug.org: Free code hosting</title>
  34. <meta name="theme-color" content="#428bca">
  35. <noscript><style>.nojs-popup:hover > .menu { display: block ; }</style></noscript>
  36. </head>
  37. <body>
  38. <div class="full height">
  39. <noscript>Please enable JavaScript in your browser!</noscript>
  40. <div id="header-div" class="following bar light">
  41. <div class="ui container">
  42. <div class="ui grid">
  43. <div class="column">
  44. <div class="ui top secondary menu">
  45. <a class="item brand" href="/">
  46. <img class="ui mini image" src="/img/favicon.png">
  47. </a>
  48. <a class="item" href="/">Home</a>
  49. <a class="item" href="/explore/repos">Explore</a>
  50. <a class="notabug-item item" href="/help" rel="noreferrer">Help</a>
  51. <div class="right menu">
  52. <a class="item" href="/user/sign_up">
  53. <i class="octicon octicon-person"></i> Register
  54. </a>
  55. <a class="item" href="/user/login?redirect_to=%2fdiogo%2fgnu-social%2fissues%2f121">
  56. <i class="octicon octicon-sign-in"></i> Sign In
  57. </a>
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. <div class="repository view issue pull">
  65. <div class="header-wrapper">
  66. <div class="ui container">
  67. <div class="ui vertically padded grid head">
  68. <div class="column">
  69. <div class="ui header">
  70. <div class="ui huge breadcrumb">
  71. <i class="mega-octicon octicon-repo"></i>
  72. <a href="/diogo">diogo</a>
  73. <div class="divider"> / </div>
  74. <a href="/diogo/gnu-social">gnu-social</a>
  75. </div>
  76. <div class="ui right">
  77. <div class="ui labeled button" tabindex="0">
  78. <a class="ui basic button" href="/diogo/gnu-social/action/watch?redirect_to=%2fdiogo%2fgnu-social%2fissues%2f121">
  79. <i class="icon fa-eye-slash"></i>Watch
  80. </a>
  81. <a class="ui basic label" href="/diogo/gnu-social/watchers">
  82. 9
  83. </a>
  84. </div>
  85. <div class="ui labeled button" tabindex="0">
  86. <a class="ui basic button" href="/diogo/gnu-social/action/star?redirect_to=%2fdiogo%2fgnu-social%2fissues%2f121">
  87. <i class="icon fa-star-o"></i>Star
  88. </a>
  89. <a class="ui basic label" href="/diogo/gnu-social/stars">
  90. 22
  91. </a>
  92. </div>
  93. <div class="ui labeled button" tabindex="0">
  94. <a class="ui basic button " href="/repo/fork/25974">
  95. <i class="octicon octicon-repo-forked"></i>Fork
  96. </a>
  97. <a class="ui basic label" href="/diogo/gnu-social/forks">
  98. 21
  99. </a>
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. </div>
  106. <div class="ui tabs container">
  107. <div class="ui tabular menu navbar">
  108. <a class=" item" href="/diogo/gnu-social">
  109. <i class="octicon octicon-file-text"></i> Files
  110. </a>
  111. <a class="active item" href="/diogo/gnu-social/issues">
  112. <i class="octicon octicon-issue-opened"></i> Issues <span class="ui blue small label">73</span>
  113. </a>
  114. <a class=" item" href="/diogo/gnu-social/pulls">
  115. <i class="octicon octicon-git-pull-request"></i> Pull Requests <span class="ui blue small label">3</span>
  116. </a>
  117. <a class=" item" href="/diogo/gnu-social/wiki">
  118. <i class="octicon octicon-book"></i> Wiki
  119. </a>
  120. </div>
  121. </div>
  122. <div class="ui tabs divider"></div>
  123. </div>
  124. <div class="ui container">
  125. <div class="navbar">
  126. <div class="ui compact small menu">
  127. <a class=" item" href="/diogo/gnu-social/labels">Labels</a>
  128. <a class=" item" href="/diogo/gnu-social/milestones">Milestones</a>
  129. </div>
  130. <div class="ui right">
  131. <a class="ui green button" href="/diogo/gnu-social/issues/new">New Issue</a>
  132. </div>
  133. </div>
  134. <div class="ui divider"></div>
  135. <div>
  136. <div class="ui grid">
  137. <div class="sixteen wide column title">
  138. <div class="ui grid">
  139. <h1 class="twelve wide column">
  140. <span class="index">#121</span> <span id="issue-title" class="has-emoji">Plugin &#34;SensitiveContent&#34; messes up proportion in attachments</span>
  141. <div id="edit-title-input" class="ui input" style="display: none">
  142. <input value="Plugin &#34;SensitiveContent&#34; messes up proportion in attachments">
  143. </div>
  144. </h1>
  145. </div>
  146. <div class="ui red large label"><i class="octicon octicon-issue-closed"></i> Closed</div>
  147. <span class="time-desc">
  148. opened <span class="time-since" title="Sat, 04 Apr 2020 21:03:08 UTC">7 months ago</span> by <a href="/aab">aab</a>
  149. ·
  150. 11 comments
  151. </span>
  152. <div class="ui divider"></div>
  153. </div>
  154. <div class="twelve wide column comment-list">
  155. <ui class="ui comments">
  156. <div class="comment">
  157. <a class="avatar" href="/aab">
  158. <img src="https://seccdn.libravatar.org/avatar/8e0ba2a1c26a4ecd23662fad4af3dc5e">
  159. </a>
  160. <div class="content">
  161. <div class="ui top attached header">
  162. <span class="text grey"><a href="/aab">aab</a> commented <a href="#issue-64679"><span class="time-since" title="Sat, 04 Apr 2020 21:03:08 UTC">7 months ago</span></a></span>
  163. <div class="ui right actions">
  164. </div>
  165. </div>
  166. <div class="ui attached segment">
  167. <div class="render-content markdown has-emoji">
  168. <p>I had it activated since... i don&#39;t remember. Attachments in the two nodes i administer were showing with no proportion; through setconfig.php i managed to show them <em>a bit</em> better.
  169. Disabling the plugin brings everything back to normal.</p>
  170. </div>
  171. <div class="raw-content hide">I had it activated since... i don&#39;t remember. Attachments in the two nodes i administer were showing with no proportion; through setconfig.php i managed to show them *a bit* better.
  172. Disabling the plugin brings everything back to normal.</div>
  173. <div class="edit-content-zone hide" data-write="issue-64679-write" data-preview="issue-64679-preview" data-update-url="/diogo/gnu-social/issues/121/content" data-context="/diogo/gnu-social"></div>
  174. </div>
  175. </div>
  176. </div>
  177. <div class="comment" id="issuecomment-18254">
  178. <a class="avatar" href="/someonewithpc">
  179. <img src="https://seccdn.libravatar.org/avatar/89baac3327aebd79156eb67a9db545e6">
  180. </a>
  181. <div class="content">
  182. <div class="ui top attached header">
  183. <span class="text grey"><a href="/someonewithpc">someonewithpc</a> commented <a href="#issuecomment-18254"><span class="time-since" title="Mon, 06 Apr 2020 16:21:19 UTC">7 months ago</span></a></span>
  184. <div class="ui right actions">
  185. <div class="item tag">
  186. Collaborator
  187. </div>
  188. </div>
  189. </div>
  190. <div class="ui attached segment">
  191. <div class="render-content markdown has-emoji">
  192. <p>Wait, all attachments were affected by this plugin?</p>
  193. </div>
  194. <div class="raw-content hide">Wait, all attachments were affected by this plugin? </div>
  195. <div class="edit-content-zone hide" data-write="issuecomment-18254-write" data-preview="issuecomment-18254-preview" data-update-url="/diogo/gnu-social/comments/18254" data-context="/diogo/gnu-social"></div>
  196. </div>
  197. </div>
  198. </div>
  199. <div class="comment" id="issuecomment-18256">
  200. <a class="avatar" href="/aab">
  201. <img src="https://seccdn.libravatar.org/avatar/8e0ba2a1c26a4ecd23662fad4af3dc5e">
  202. </a>
  203. <div class="content">
  204. <div class="ui top attached header">
  205. <span class="text grey"><a href="/aab">aab</a> commented <a href="#issuecomment-18256"><span class="time-since" title="Mon, 06 Apr 2020 16:46:53 UTC">7 months ago</span></a></span>
  206. <div class="ui right actions">
  207. <div class="item tag">
  208. Poster
  209. </div>
  210. </div>
  211. </div>
  212. <div class="ui attached segment">
  213. <div class="render-content markdown has-emoji">
  214. <p>Yes, both nodes showed that behaviour on all attachments.</p>
  215. </div>
  216. <div class="raw-content hide">Yes, both nodes showed that behaviour on all attachments.</div>
  217. <div class="edit-content-zone hide" data-write="issuecomment-18256-write" data-preview="issuecomment-18256-preview" data-update-url="/diogo/gnu-social/comments/18256" data-context="/diogo/gnu-social"></div>
  218. </div>
  219. </div>
  220. </div>
  221. <div class="comment" id="issuecomment-18257">
  222. <a class="avatar" href="/someonewithpc">
  223. <img src="https://seccdn.libravatar.org/avatar/89baac3327aebd79156eb67a9db545e6">
  224. </a>
  225. <div class="content">
  226. <div class="ui top attached header">
  227. <span class="text grey"><a href="/someonewithpc">someonewithpc</a> commented <a href="#issuecomment-18257"><span class="time-since" title="Mon, 06 Apr 2020 16:55:13 UTC">7 months ago</span></a></span>
  228. <div class="ui right actions">
  229. <div class="item tag">
  230. Collaborator
  231. </div>
  232. </div>
  233. </div>
  234. <div class="ui attached segment">
  235. <div class="render-content markdown has-emoji">
  236. <p><a href="/aab" rel="nofollow">@aab</a> my latest commit should fix this issue, but I don&#39;t really have a way to test it</p>
  237. </div>
  238. <div class="raw-content hide">@aab my latest commit should fix this issue, but I don&#39;t really have a way to test it</div>
  239. <div class="edit-content-zone hide" data-write="issuecomment-18257-write" data-preview="issuecomment-18257-preview" data-update-url="/diogo/gnu-social/comments/18257" data-context="/diogo/gnu-social"></div>
  240. </div>
  241. </div>
  242. </div>
  243. <div class="comment" id="issuecomment-18259">
  244. <a class="avatar" href="/aab">
  245. <img src="https://seccdn.libravatar.org/avatar/8e0ba2a1c26a4ecd23662fad4af3dc5e">
  246. </a>
  247. <div class="content">
  248. <div class="ui top attached header">
  249. <span class="text grey"><a href="/aab">aab</a> commented <a href="#issuecomment-18259"><span class="time-since" title="Mon, 06 Apr 2020 17:04:04 UTC">7 months ago</span></a></span>
  250. <div class="ui right actions">
  251. <div class="item tag">
  252. Poster
  253. </div>
  254. </div>
  255. </div>
  256. <div class="ui attached segment">
  257. <div class="render-content markdown has-emoji">
  258. <p>I&#39;ve just tried on one of the nodes; as soon as the plugin is activated, proportion is gone.</p>
  259. </div>
  260. <div class="raw-content hide">I&#39;ve just tried on one of the nodes; as soon as the plugin is activated, proportion is gone.</div>
  261. <div class="edit-content-zone hide" data-write="issuecomment-18259-write" data-preview="issuecomment-18259-preview" data-update-url="/diogo/gnu-social/comments/18259" data-context="/diogo/gnu-social"></div>
  262. </div>
  263. </div>
  264. </div>
  265. <div class="comment" id="issuecomment-18260">
  266. <a class="avatar" href="/someonewithpc">
  267. <img src="https://seccdn.libravatar.org/avatar/89baac3327aebd79156eb67a9db545e6">
  268. </a>
  269. <div class="content">
  270. <div class="ui top attached header">
  271. <span class="text grey"><a href="/someonewithpc">someonewithpc</a> commented <a href="#issuecomment-18260"><span class="time-since" title="Mon, 06 Apr 2020 17:23:20 UTC">7 months ago</span></a></span>
  272. <div class="ui right actions">
  273. <div class="item tag">
  274. Collaborator
  275. </div>
  276. </div>
  277. </div>
  278. <div class="ui attached segment">
  279. <div class="render-content markdown has-emoji">
  280. <p>What do you mean by proportion? I might be misunderstanding you</p>
  281. </div>
  282. <div class="raw-content hide">What do you mean by proportion? I might be misunderstanding you</div>
  283. <div class="edit-content-zone hide" data-write="issuecomment-18260-write" data-preview="issuecomment-18260-preview" data-update-url="/diogo/gnu-social/comments/18260" data-context="/diogo/gnu-social"></div>
  284. </div>
  285. </div>
  286. </div>
  287. <div class="comment" id="issuecomment-18263">
  288. <a class="avatar" href="/aab">
  289. <img src="https://seccdn.libravatar.org/avatar/8e0ba2a1c26a4ecd23662fad4af3dc5e">
  290. </a>
  291. <div class="content">
  292. <div class="ui top attached header">
  293. <span class="text grey"><a href="/aab">aab</a> commented <a href="#issuecomment-18263"><span class="time-since" title="Mon, 06 Apr 2020 17:39:54 UTC">7 months ago</span></a></span>
  294. <div class="ui right actions">
  295. <div class="item tag">
  296. Poster
  297. </div>
  298. </div>
  299. </div>
  300. <div class="ui attached segment">
  301. <div class="render-content markdown has-emoji">
  302. <p>Ok, i&#39;ll try to explain better with images.</p>
  303. <p>Now, the one without is specially distorted, as i I had to change width and height thumbnails with setconfig in order to &#34;fix&#34; it: most of thumbnails fit in 600x90, as they are links, and not images like this.
  304. (Edit)Ah, and it doesn&#39;t depend on the theme used.</p>
  305. </div>
  306. <div class="raw-content hide">Ok, i&#39;ll try to explain better with images.
  307. Now, the one without is specially distorted, as i I had to change width and height thumbnails with setconfig in order to &#34;fix&#34; it: most of thumbnails fit in 600x90, as they are links, and not images like this.
  308. (Edit)Ah, and it doesn&#39;t depend on the theme used.
  309. </div>
  310. <div class="edit-content-zone hide" data-write="issuecomment-18263-write" data-preview="issuecomment-18263-preview" data-update-url="/diogo/gnu-social/comments/18263" data-context="/diogo/gnu-social"></div>
  311. </div>
  312. <div class="ui bottom attached segment">
  313. <div class="ui small images">
  314. <a target="_blank" href="/attachments/c2bec91b-d5ef-4ba5-b2cd-19e20af9f907">
  315. <img class="ui image" src="/attachments/c2bec91b-d5ef-4ba5-b2cd-19e20af9f907" title='Click to see &#34;With_Sensitive_Content.png&#34; in a new tab'>
  316. </a>
  317. <a target="_blank" href="/attachments/74c2b0f1-75b8-4c23-933f-00fcf1e73d4d">
  318. <img class="ui image" src="/attachments/74c2b0f1-75b8-4c23-933f-00fcf1e73d4d" title='Click to see &#34;Without_sensitive_content.png&#34; in a new tab'>
  319. </a>
  320. </div>
  321. </div>
  322. </div>
  323. </div>
  324. <div class="comment" id="issuecomment-18267">
  325. <a class="avatar" href="/diogo">
  326. <img src="/avatars/12290">
  327. </a>
  328. <div class="content">
  329. <div class="ui top attached header">
  330. <span class="text grey"><a href="/diogo">Diogo Cordeiro</a> commented <a href="#issuecomment-18267"><span class="time-since" title="Tue, 07 Apr 2020 02:35:27 UTC">7 months ago</span></a></span>
  331. <div class="ui right actions">
  332. <div class="item tag">
  333. Owner
  334. </div>
  335. </div>
  336. </div>
  337. <div class="ui attached segment">
  338. <div class="render-content markdown has-emoji">
  339. <p>Fixed with <code><a href="https://notabug.org/diogo/gnu-social/commit/9b587ae4a3f9e2e6f9ec2f496f631d7aaf045417" rel="nofollow">9b587ae4a3</a></code></p>
  340. <p>as seen in <a href="https://social.hackersatporto.com/conversation/5622#notice-11624" rel="nofollow">https://social.hackersatporto.com/conversation/5622#notice-11624</a></p>
  341. </div>
  342. <div class="raw-content hide">Fixed with https://notabug.org/diogo/gnu-social/commit/9b587ae4a3f9e2e6f9ec2f496f631d7aaf045417
  343. as seen in https://social.hackersatporto.com/conversation/5622#notice-11624</div>
  344. <div class="edit-content-zone hide" data-write="issuecomment-18267-write" data-preview="issuecomment-18267-preview" data-update-url="/diogo/gnu-social/comments/18267" data-context="/diogo/gnu-social"></div>
  345. </div>
  346. </div>
  347. </div>
  348. <div class="event">
  349. <span class="octicon octicon-circle-slash"></span>
  350. <a class="ui avatar image" href="/diogo">
  351. <img src="/avatars/12290">
  352. </a>
  353. <span class="text grey"><a href="/diogo">diogo</a> closed <a id="event-18268" href="#event-18268"><span class="time-since" title="Tue, 07 Apr 2020 02:35:27 UTC">7 months ago</span></a></span>
  354. </div>
  355. <div class="comment" id="issuecomment-18279">
  356. <a class="avatar" href="/aab">
  357. <img src="https://seccdn.libravatar.org/avatar/8e0ba2a1c26a4ecd23662fad4af3dc5e">
  358. </a>
  359. <div class="content">
  360. <div class="ui top attached header">
  361. <span class="text grey"><a href="/aab">aab</a> commented <a href="#issuecomment-18279"><span class="time-since" title="Tue, 07 Apr 2020 09:44:45 UTC">7 months ago</span></a></span>
  362. <div class="ui right actions">
  363. <div class="item tag">
  364. Poster
  365. </div>
  366. </div>
  367. </div>
  368. <div class="ui attached segment">
  369. <div class="render-content markdown has-emoji">
  370. <p>Ok, sorry to reopen this, just a couple of things:</p>
  371. <ul>
  372. <li>In the new README, this is the example:</li>
  373. </ul>
  374. <p><code> addPlugin(&#39;SensitiveContent&#39;, [&#39;hideforvisitors&#39; =&gt; true] </code></p>
  375. <p>But it does not work unless i write</p>
  376. <p><code> addPlugin(&#39;SensitiveContent&#39;, [&#39;hideforvisitors&#39; =&gt; true]); </code></p>
  377. <ul>
  378. <li>Appart from that, i keep having distorted images with the plugin. I know it has been fixed, and i know why they keep being distorted: before i knew this plugin was responsible, i used setconfig.php to give thumbnails a fixed measure of 600x90. I&#39;ve tried restoring them to the default value, 450x600:</li>
  379. </ul>
  380. <p><a href="https://khp.ignorelist.com/conversation/206812#notice-426573" rel="nofollow">https://khp.ignorelist.com/conversation/206812#notice-426573</a></p>
  381. <p>Is there any way to set this to &#34;auto&#34; (or something like that), so the thumbnails get the proportion they need?</p>
  382. </div>
  383. <div class="raw-content hide">Ok, sorry to reopen this, just a couple of things:
  384. - In the new README, this is the example:
  385. &lt;code&gt; addPlugin(&#39;SensitiveContent&#39;, [&#39;hideforvisitors&#39; =&gt; true] &lt;/code&gt;
  386. But it does not work unless i write
  387. &lt;code&gt; addPlugin(&#39;SensitiveContent&#39;, [&#39;hideforvisitors&#39; =&gt; true]); &lt;/code&gt;
  388. - Appart from that, i keep having distorted images with the plugin. I know it has been fixed, and i know why they keep being distorted: before i knew this plugin was responsible, i used setconfig.php to give thumbnails a fixed measure of 600x90. I&#39;ve tried restoring them to the default value, 450x600:
  389. https://khp.ignorelist.com/conversation/206812#notice-426573
  390. Is there any way to set this to &#34;auto&#34; (or something like that), so the thumbnails get the proportion they need?
  391. </div>
  392. <div class="edit-content-zone hide" data-write="issuecomment-18279-write" data-preview="issuecomment-18279-preview" data-update-url="/diogo/gnu-social/comments/18279" data-context="/diogo/gnu-social"></div>
  393. </div>
  394. </div>
  395. </div>
  396. <div class="comment" id="issuecomment-18281">
  397. <a class="avatar" href="/diogo">
  398. <img src="/avatars/12290">
  399. </a>
  400. <div class="content">
  401. <div class="ui top attached header">
  402. <span class="text grey"><a href="/diogo">Diogo Cordeiro</a> commented <a href="#issuecomment-18281"><span class="time-since" title="Tue, 07 Apr 2020 12:56:13 UTC">7 months ago</span></a></span>
  403. <div class="ui right actions">
  404. <div class="item tag">
  405. Owner
  406. </div>
  407. </div>
  408. </div>
  409. <div class="ui attached segment">
  410. <div class="render-content markdown has-emoji">
  411. <p>Fixed the README.</p>
  412. <p>run <code>./scripts/clean_thumbnails.php</code></p>
  413. <p>Relevant settings concerning thumbs: <a href="https://notabug.org/diogo/gnu-social/src/nightly/lib/util/default.php#L285-L289" rel="nofollow">https://notabug.org/diogo/gnu-social/src/nightly/lib/util/default.php#L285-L289</a></p>
  414. <ul>
  415. <li><code>crop</code>: Crop to the given dimensions (not preserving aspect ratio)</li>
  416. <li><code>maxsize</code>: width and height won&#39;t be larger than this value (just re-read the code and, I don&#39;t think this setting was needed at all, it would be more helpful if it was an actual max size for a thumb file or smth...)</li>
  417. <li><code>width</code>: Max width</li>
  418. <li><code>height</code>: Max height</li>
  419. <li><code>upscale</code>: Whether to allow a thumb to acquire greater dimensions than its original file or not</li>
  420. </ul>
  421. </div>
  422. <div class="raw-content hide">Fixed the README.
  423. run `./scripts/clean_thumbnails.php`
  424. Relevant settings concerning thumbs: https://notabug.org/diogo/gnu-social/src/nightly/lib/util/default.php#L285-L289
  425. - `crop`: Crop to the given dimensions (not preserving aspect ratio)
  426. - `maxsize`: width and height won&#39;t be larger than this value (just re-read the code and, I don&#39;t think this setting was needed at all, it would be more helpful if it was an actual max size for a thumb file or smth...)
  427. - `width`: Max width
  428. - `height`: Max height
  429. - `upscale`: Whether to allow a thumb to acquire greater dimensions than its original file or not</div>
  430. <div class="edit-content-zone hide" data-write="issuecomment-18281-write" data-preview="issuecomment-18281-preview" data-update-url="/diogo/gnu-social/comments/18281" data-context="/diogo/gnu-social"></div>
  431. </div>
  432. </div>
  433. </div>
  434. <div class="comment" id="issuecomment-18282">
  435. <a class="avatar" href="/aab">
  436. <img src="https://seccdn.libravatar.org/avatar/8e0ba2a1c26a4ecd23662fad4af3dc5e">
  437. </a>
  438. <div class="content">
  439. <div class="ui top attached header">
  440. <span class="text grey"><a href="/aab">aab</a> commented <a href="#issuecomment-18282"><span class="time-since" title="Tue, 07 Apr 2020 13:25:37 UTC">7 months ago</span></a></span>
  441. <div class="ui right actions">
  442. <div class="item tag">
  443. Poster
  444. </div>
  445. </div>
  446. </div>
  447. <div class="ui attached segment">
  448. <div class="render-content markdown has-emoji">
  449. <p>It seems i got it just like the default values:</p>
  450. <pre><code>thumbnail dir &#39;/var/www/html/file/thumb&#39;
  451. thumbnail path NULL
  452. thumbnail server NULL
  453. thumbnail crop &#39;false&#39;
  454. thumbnail maxsize 1000
  455. thumbnail width &#39;450&#39;
  456. thumbnail height &#39;600&#39;
  457. thumbnail upscale &#39;false&#39;
  458. thumbnail animated &#39;false&#39;
  459. </code></pre>
  460. <p>The only difference i can see is that &#34;dir&#34; is defined.</p>
  461. <p>I&#39;ve executed clean_thumbnails, but there has been no change.</p>
  462. <p>Just in case, i&#39;ve looked in db, everything seems fine...</p>
  463. <pre><code class="language-sh">MariaDB [gnusocial]&gt; select * from config where section = &#39;thumbnail&#39;;
  464. +-----------+----------+-------+
  465. | section | setting | value |
  466. +-----------+----------+-------+
  467. | thumbnail | animated | false |
  468. | thumbnail | crop | false |
  469. | thumbnail | height | 600 |
  470. | thumbnail | upscale | false |
  471. | thumbnail | width | 450 |
  472. +-----------+----------+-------+
  473. </code></pre>
  474. </div>
  475. <div class="raw-content hide">It seems i got it just like the default values:
  476. ````
  477. thumbnail dir &#39;/var/www/html/file/thumb&#39;
  478. thumbnail path NULL
  479. thumbnail server NULL
  480. thumbnail crop &#39;false&#39;
  481. thumbnail maxsize 1000
  482. thumbnail width &#39;450&#39;
  483. thumbnail height &#39;600&#39;
  484. thumbnail upscale &#39;false&#39;
  485. thumbnail animated &#39;false&#39;
  486. ````
  487. The only difference i can see is that &#34;dir&#34; is defined.
  488. I&#39;ve executed clean_thumbnails, but there has been no change.
  489. Just in case, i&#39;ve looked in db, everything seems fine...
  490. ````sh
  491. MariaDB [gnusocial]&gt; select * from config where section = &#39;thumbnail&#39;;
  492. &#43;-----------&#43;----------&#43;-------&#43;
  493. | section | setting | value |
  494. &#43;-----------&#43;----------&#43;-------&#43;
  495. | thumbnail | animated | false |
  496. | thumbnail | crop | false |
  497. | thumbnail | height | 600 |
  498. | thumbnail | upscale | false |
  499. | thumbnail | width | 450 |
  500. &#43;-----------&#43;----------&#43;-------&#43;
  501. ````
  502. </div>
  503. <div class="edit-content-zone hide" data-write="issuecomment-18282-write" data-preview="issuecomment-18282-preview" data-update-url="/diogo/gnu-social/comments/18282" data-context="/diogo/gnu-social"></div>
  504. </div>
  505. </div>
  506. </div>
  507. <div class="comment" id="issuecomment-19931">
  508. <a class="avatar" href="/aab">
  509. <img src="https://seccdn.libravatar.org/avatar/8e0ba2a1c26a4ecd23662fad4af3dc5e">
  510. </a>
  511. <div class="content">
  512. <div class="ui top attached header">
  513. <span class="text grey"><a href="/aab">aab</a> commented <a href="#issuecomment-19931"><span class="time-since" title="Fri, 10 Jul 2020 08:13:36 UTC">4 months ago</span></a></span>
  514. <div class="ui right actions">
  515. <div class="item tag">
  516. Poster
  517. </div>
  518. </div>
  519. </div>
  520. <div class="ui attached segment">
  521. <div class="render-content markdown has-emoji">
  522. <p>I&#39;ve checked the plugin today after all this time, i&#39;m afraid there&#39;s still disproportion in images: <a href="https://gnusocial.net/conversation/4963984#notice-8172421" rel="nofollow">https://gnusocial.net/conversation/4963984#notice-8172421</a></p>
  523. <p>setconfig.php -a | grep thumbnail gives</p>
  524. <pre><code>thumbnail dir &#39;/var/www/gnusocial/file/thumb&#39;
  525. thumbnail path NULL
  526. thumbnail server NULL
  527. thumbnail crop &#39;false&#39;
  528. thumbnail maxsize 1000
  529. thumbnail width 450
  530. thumbnail height &#39;600&#39;
  531. thumbnail upscale &#39;false&#39;
  532. thumbnail animated &#39;false&#39;
  533. thumbnail file_quota &#39;2097152&#39;
  534. thumbnail process_links &#39;true&#39;
  535. thumbnail show_thumbs &#39;true&#39;
  536. </code></pre>
  537. <pre><code>MariaDB [gnusocial]&gt; select * from config where section = &#39;thumbnail&#39;;
  538. +-----------+---------------+---------+
  539. | section | setting | value |
  540. +-----------+---------------+---------+
  541. | thumbnail | animated | false |
  542. | thumbnail | crop | false |
  543. | thumbnail | file_quota | 2097152 |
  544. | thumbnail | height | 600 |
  545. | thumbnail | process_links | true |
  546. | thumbnail | show_thumbs | true |
  547. | thumbnail | upscale | false |
  548. +-----------+---------------+---------+
  549. </code></pre>
  550. <p>I&#39;ve also run clean_thumbnails. Anything else i&#39;m missing?</p>
  551. </div>
  552. <div class="raw-content hide">I&#39;ve checked the plugin today after all this time, i&#39;m afraid there&#39;s still disproportion in images: https://gnusocial.net/conversation/4963984#notice-8172421
  553. setconfig.php -a | grep thumbnail gives
  554. ````
  555. thumbnail dir &#39;/var/www/gnusocial/file/thumb&#39;
  556. thumbnail path NULL
  557. thumbnail server NULL
  558. thumbnail crop &#39;false&#39;
  559. thumbnail maxsize 1000
  560. thumbnail width 450
  561. thumbnail height &#39;600&#39;
  562. thumbnail upscale &#39;false&#39;
  563. thumbnail animated &#39;false&#39;
  564. thumbnail file_quota &#39;2097152&#39;
  565. thumbnail process_links &#39;true&#39;
  566. thumbnail show_thumbs &#39;true&#39;
  567. ````
  568. ````
  569. MariaDB [gnusocial]&gt; select * from config where section = &#39;thumbnail&#39;;
  570. &#43;-----------&#43;---------------&#43;---------&#43;
  571. | section | setting | value |
  572. &#43;-----------&#43;---------------&#43;---------&#43;
  573. | thumbnail | animated | false |
  574. | thumbnail | crop | false |
  575. | thumbnail | file_quota | 2097152 |
  576. | thumbnail | height | 600 |
  577. | thumbnail | process_links | true |
  578. | thumbnail | show_thumbs | true |
  579. | thumbnail | upscale | false |
  580. &#43;-----------&#43;---------------&#43;---------&#43;
  581. ````
  582. I&#39;ve also run clean_thumbnails. Anything else i&#39;m missing?
  583. </div>
  584. <div class="edit-content-zone hide" data-write="issuecomment-19931-write" data-preview="issuecomment-19931-preview" data-update-url="/diogo/gnu-social/comments/19931" data-context="/diogo/gnu-social"></div>
  585. </div>
  586. </div>
  587. </div>
  588. <div class="ui warning message">
  589. <a href="/user/login?redirect_to=/diogo/gnu-social/issues/121">Sign in</a> to join this conversation.
  590. </div>
  591. </ui>
  592. </div>
  593. <div class="four wide column">
  594. <div class="ui segment metas">
  595. <div class="ui disabled floating jump select-label dropdown">
  596. <span class="text">
  597. <strong>Labels</strong>
  598. <span class="octicon octicon-gear"></span>
  599. </span>
  600. <div class="filter menu" data-action="update" data-update-url="/diogo/gnu-social/issues/121/label">
  601. <div class="no-select item">Clear labels</div>
  602. <a class=" item" href="#" data-id="1564" data-id-selector="#label_1564"><span class="octicon "></span><span class="label color" style="background-color: #fbca04"></span> bounty</a>
  603. <a class="checked item" href="#" data-id="1483" data-id-selector="#label_1483"><span class="octicon octicon-check"></span><span class="label color" style="background-color: #ee0701"></span> bug</a>
  604. <a class=" item" href="#" data-id="1484" data-id-selector="#label_1484"><span class="octicon "></span><span class="label color" style="background-color: #cccccc"></span> duplicate</a>
  605. <a class=" item" href="#" data-id="1485" data-id-selector="#label_1485"><span class="octicon "></span><span class="label color" style="background-color: #84b6eb"></span> enhancement</a>
  606. <a class=" item" href="#" data-id="1486" data-id-selector="#label_1486"><span class="octicon "></span><span class="label color" style="background-color: #128a0c"></span> help wanted</a>
  607. <a class=" item" href="#" data-id="1487" data-id-selector="#label_1487"><span class="octicon "></span><span class="label color" style="background-color: #e6e6e6"></span> invalid</a>
  608. <a class=" item" href="#" data-id="1488" data-id-selector="#label_1488"><span class="octicon "></span><span class="label color" style="background-color: #cc317c"></span> question</a>
  609. <a class=" item" href="#" data-id="1565" data-id-selector="#label_1565"><span class="octicon "></span><span class="label color" style="background-color: #d4c5f9"></span> RFC</a>
  610. <a class=" item" href="#" data-id="1841" data-id-selector="#label_1841"><span class="octicon "></span><span class="label color" style="background-color: #0052cc"></span> v3</a>
  611. <a class=" item" href="#" data-id="1489" data-id-selector="#label_1489"><span class="octicon "></span><span class="label color" style="background-color: #ffffff"></span> wontfix</a>
  612. </div>
  613. </div>
  614. <div class="ui labels list">
  615. <span class="no-select item hide">No Label</span>
  616. <div class="item">
  617. <a class="ui label hide" id="label_1564" href="/diogo/gnu-social/issues?labels=1564" style="color: #000; background-color: #fbca04">bounty</a>
  618. </div>
  619. <div class="item">
  620. <a class="ui label " id="label_1483" href="/diogo/gnu-social/issues?labels=1483" style="color: #fff; background-color: #ee0701">bug</a>
  621. </div>
  622. <div class="item">
  623. <a class="ui label hide" id="label_1484" href="/diogo/gnu-social/issues?labels=1484" style="color: #000; background-color: #cccccc">duplicate</a>
  624. </div>
  625. <div class="item">
  626. <a class="ui label hide" id="label_1485" href="/diogo/gnu-social/issues?labels=1485" style="color: #000; background-color: #84b6eb">enhancement</a>
  627. </div>
  628. <div class="item">
  629. <a class="ui label hide" id="label_1486" href="/diogo/gnu-social/issues?labels=1486" style="color: #fff; background-color: #128a0c">help wanted</a>
  630. </div>
  631. <div class="item">
  632. <a class="ui label hide" id="label_1487" href="/diogo/gnu-social/issues?labels=1487" style="color: #000; background-color: #e6e6e6">invalid</a>
  633. </div>
  634. <div class="item">
  635. <a class="ui label hide" id="label_1488" href="/diogo/gnu-social/issues?labels=1488" style="color: #fff; background-color: #cc317c">question</a>
  636. </div>
  637. <div class="item">
  638. <a class="ui label hide" id="label_1565" href="/diogo/gnu-social/issues?labels=1565" style="color: #000; background-color: #d4c5f9">RFC</a>
  639. </div>
  640. <div class="item">
  641. <a class="ui label hide" id="label_1841" href="/diogo/gnu-social/issues?labels=1841" style="color: #fff; background-color: #0052cc">v3</a>
  642. </div>
  643. <div class="item">
  644. <a class="ui label hide" id="label_1489" href="/diogo/gnu-social/issues?labels=1489" style="color: #000; background-color: #ffffff">wontfix</a>
  645. </div>
  646. </div>
  647. <div class="ui divider"></div>
  648. <div class="ui disabled floating jump select-milestone dropdown">
  649. <span class="text">
  650. <strong>Milestone</strong>
  651. <span class="octicon octicon-gear"></span>
  652. </span>
  653. <div class="menu" data-action="update" data-update-url="/diogo/gnu-social/issues/121/milestone">
  654. <div class="no-select item">Clear milestone</div>
  655. </div>
  656. </div>
  657. <div class="ui select-milestone list">
  658. <span class="no-select item ">No Milestone</span>
  659. <div class="selected">
  660. </div>
  661. </div>
  662. <div class="ui divider"></div>
  663. <input id="assignee_id" name="assignee_id" type="hidden" value="">
  664. <div class="ui disabled floating jump select-assignee dropdown">
  665. <span class="text">
  666. <strong>Assignee</strong>
  667. <span class="octicon octicon-gear"></span>
  668. </span>
  669. <div class="menu" data-action="update" data-update-url="/diogo/gnu-social/issues/121/assignee">
  670. <div class="no-select item">Clear assignee</div>
  671. </div>
  672. </div>
  673. <div class="ui select-assignee list">
  674. <span class="no-select item hide">No assignee</span>
  675. <div class="selected">
  676. <a class="item" href="/diogo/gnu-social/issues?assignee=12290"><img class="ui avatar image" src="/avatars/12290"> Diogo Cordeiro</a>
  677. </div>
  678. </div>
  679. <div class="ui divider"></div>
  680. <div class="ui participants">
  681. <span class="text"><strong>3 Participants</strong></span>
  682. <div>
  683. <a href="/aab">
  684. <img class="ui avatar image poping up" src="https://seccdn.libravatar.org/avatar/8e0ba2a1c26a4ecd23662fad4af3dc5e" data-content="aab" data-position="top center" data-variation="small inverted">
  685. </a>
  686. <a href="/someonewithpc">
  687. <img class="ui avatar image poping up" src="https://seccdn.libravatar.org/avatar/89baac3327aebd79156eb67a9db545e6" data-content="someonewithpc" data-position="top center" data-variation="small inverted">
  688. </a>
  689. <a href="/diogo">
  690. <img class="ui avatar image poping up" src="/avatars/12290" data-content="Diogo Cordeiro" data-position="top center" data-variation="small inverted">
  691. </a>
  692. </div>
  693. </div>
  694. </div>
  695. </div>
  696. </div>
  697. <div class="hide" id="edit-content-form">
  698. <div class="ui comment form">
  699. <div class="ui top attached tabular menu">
  700. <a class="active write item">Write</a>
  701. <a class="preview item" data-url="/api/v1/markdown" data-context="/diogo/gnu-social">Preview</a>
  702. </div>
  703. <div class="ui bottom attached active write tab segment">
  704. <textarea tabindex="1" id="content" name="content"></textarea>
  705. </div>
  706. <div class="ui bottom attached tab preview segment markdown">
  707. Loading...
  708. </div>
  709. <div class="text right edit buttons">
  710. <div class="ui basic blue cancel button" tabindex="3">Cancel</div>
  711. <div class="ui green save button" tabindex="2">Save</div>
  712. </div>
  713. </div>
  714. </div>
  715. <div class="hide" id="no-content">
  716. <span class="no-content">There is no content yet.</span>
  717. </div>
  718. </div>
  719. </div>
  720. </div>
  721. </div>
  722. <footer>
  723. <div class="ui container">
  724. <div class="ui left">
  725. <a href="/tos">Terms of Service</a>
  726. &bull;
  727. <a href="/about">About us</a>
  728. &bull;
  729. <a href="/outages">Outages</a>
  730. &bull;
  731. <a href="/hp/gogs/issues">Report a problem</a>
  732. &bull;
  733. <a href="/assets/librejs/librejs.html" data-jslicense="1">Javascript licenses</a>
  734. &bull;
  735. <a href="/fingerprints">SSH Fingerprints</a>
  736. </div>
  737. <div class="ui right links">
  738. <div class="ui language bottom floating slide up dropdown link item">
  739. <i class="world icon"></i>
  740. <div class="text">English</div>
  741. <div class="menu">
  742. <a class="item active selected" href="#">English</a>
  743. <a class="item " href="/diogo/gnu-social/issues/121?lang=zh-CN">简体中文</a>
  744. <a class="item " href="/diogo/gnu-social/issues/121?lang=zh-HK">繁體中文(香港)</a>
  745. <a class="item " href="/diogo/gnu-social/issues/121?lang=zh-TW">繁體中文(臺灣)</a>
  746. <a class="item " href="/diogo/gnu-social/issues/121?lang=de-DE">Deutsch</a>
  747. <a class="item " href="/diogo/gnu-social/issues/121?lang=fr-FR">français</a>
  748. <a class="item " href="/diogo/gnu-social/issues/121?lang=nl-NL">Nederlands</a>
  749. <a class="item " href="/diogo/gnu-social/issues/121?lang=lv-LV">latviešu</a>
  750. <a class="item " href="/diogo/gnu-social/issues/121?lang=ru-RU">русский</a>
  751. <a class="item " href="/diogo/gnu-social/issues/121?lang=ja-JP">日本語</a>
  752. <a class="item " href="/diogo/gnu-social/issues/121?lang=es-ES">español</a>
  753. <a class="item " href="/diogo/gnu-social/issues/121?lang=pt-BR">português do Brasil</a>
  754. <a class="item " href="/diogo/gnu-social/issues/121?lang=pl-PL">polski</a>
  755. <a class="item " href="/diogo/gnu-social/issues/121?lang=bg-BG">български</a>
  756. <a class="item " href="/diogo/gnu-social/issues/121?lang=it-IT">italiano</a>
  757. <a class="item " href="/diogo/gnu-social/issues/121?lang=fi-FI">suomi</a>
  758. <a class="item " href="/diogo/gnu-social/issues/121?lang=tr-TR">Türkçe</a>
  759. <a class="item " href="/diogo/gnu-social/issues/121?lang=cs-CZ">čeština</a>
  760. <a class="item " href="/diogo/gnu-social/issues/121?lang=sr-SP">српски</a>
  761. <a class="item " href="/diogo/gnu-social/issues/121?lang=sv-SE">svenska</a>
  762. <a class="item " href="/diogo/gnu-social/issues/121?lang=ko-KR">한국어</a>
  763. <a class="item " href="/diogo/gnu-social/issues/121?lang=gl-ES">galego</a>
  764. <a class="item " href="/diogo/gnu-social/issues/121?lang=uk-UA">українська</a>
  765. <a class="item " href="/diogo/gnu-social/issues/121?lang=en-GB">English (United Kingdom)</a>
  766. <a class="item " href="/diogo/gnu-social/issues/121?lang=hu-HU">Magyar</a>
  767. <a class="item " href="/diogo/gnu-social/issues/121?lang=sk-SK">Slovenčina</a>
  768. <a class="item " href="/diogo/gnu-social/issues/121?lang=id-ID">Indonesian</a>
  769. <a class="item " href="/diogo/gnu-social/issues/121?lang=fa-IR">Persian</a>
  770. </div>
  771. </div>
  772. </div>
  773. </div>
  774. </footer>
  775. </body>
  776. <link rel="stylesheet" href="/plugins/highlight-9.6.0/github.css">
  777. <script src="/plugins/highlight-9.6.0/highlight.pack.js"></script>
  778. <link rel="stylesheet" href="/plugins/dropzone-4.2.0/dropzone.css">
  779. <script src="/plugins/dropzone-4.2.0/dropzone.js"></script>
  780. <script src="/js/libs/emojify-1.1.0.min.js"></script>
  781. <script src="/js/libs/clipboard-1.5.9.min.js"></script>
  782. </html>