1 | sS snippetImageURL(long snippetID) { |
2 | ret snippetImageURL(fsI(snippetID)); |
3 | } |
4 | |
5 | static S snippetImageURL(S snippetID) { |
6 | ret snippetImageURL(snippetID, "png"); |
7 | } |
8 | |
9 | static S snippetImageURL(S snippetID, S contentType) { |
10 | if (snippetID == null || isURL(snippetID)) ret snippetID; |
11 | long id = parseSnippetID(snippetID); |
12 | String url; |
13 | if (isImageServerSnippet(id)) |
14 | url = imageServerLink(id); |
15 | else |
16 | //url = "http://eyeocr.sourceforge.net/filestore/filestore.php?cmd=serve&file=blob_" + id + "&contentType=image/" + contentType; |
17 | url = "https://botcompany.de/img/" + id; |
18 | return url; |
19 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1002137 |
Snippet name: | snippetImageURL |
Eternal ID of this version: | #1002137/12 |
Text MD5: | e5b7a07571f48cee3d8861fe5aa349e9 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-06-18 23:33:23 |
Source code size: | 612 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 850 / 1179 |
Version history: | 11 change(s) |
Referenced in: | [show references] |