Storing url in DB.

This commit is contained in:
ruidajo 2023-07-27 17:57:54 -05:00
parent fd1de5971b
commit ae92892504
3 changed files with 3 additions and 2 deletions

View File

@ -7,5 +7,5 @@ url
temp ifNil: [ ^ url := nil ].
temp := temp replaceAll: with: $u.
temp := temp replaceAll: with: $i.
url := temp asUrl.
url := temp.
]

View File

@ -9,4 +9,5 @@ reStoreDefinition
define: #profileBio as: String;
define: #description as: String;
define: #createdAt as: DateAndTime;
define: #url as: String;
yourself.

View File

@ -1,4 +1,4 @@
accessing
guiLinkLabel
self url ifNil: [^ ''].
^ (self url asString copyReplaceAll: self url scheme, '://' with: '') allButLast
^ (self url asString copyReplaceAll: self url asUrl scheme, '://' with: '') allButLast