Skip to content

Commit

Permalink
add missing extension method for HyperKitty URLs
Browse files Browse the repository at this point in the history
complements b9bcae3
  • Loading branch information
LinqLover committed Jun 4, 2023
1 parent 9eac07e commit 74f3b67
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*SqueakInboxTalk-Core-converting
talkAsByteArray
"copied from Pharo 5"
| stream |
stream := ByteArray new writeStream.
self digitLength to: 1 by: -1 do: [:digitIndex |
stream nextPut: (self digitAt: digitIndex)].
^ stream contents
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"class" : {
},
"instance" : {
"talkAsByteArray" : "ct 6/5/2023 00:09" } }
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{
"name" : "Integer" }
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ hyperkittyUrlForMessageId: messageId thread: thread
id := id allButFirst allButLast].
id := id take: 255.
hash := (Base32MimeConverter mimeEncode:
(SecureHashAlgorithm new hashMessage: id) asByteArray readStream)
(SecureHashAlgorithm new hashMessage: id) talkAsByteArray readStream)
contents.
^ 'https://lists.squeakfoundation.org/archives/list/{1}@lists.squeakfoundation.org/{2}/{3}/' format: {self name. thread ifTrue: ['thread'] ifFalse: ['message']. hash}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"downloadRange:" : "ct 5/25/2021 18:32",
"hyperkittyThreadUrlForMessageId:" : "ct 6/1/2023 18:27",
"hyperkittyUrlForMessageId:" : "ct 6/1/2023 18:25",
"hyperkittyUrlForMessageId:thread:" : "ct 6/1/2023 18:25",
"hyperkittyUrlForMessageId:thread:" : "ct 6/5/2023 00:10",
"initialize" : "ct 12/2/2022 00:10",
"lastRefreshed" : "ct 7/8/2021 13:11",
"mailAddress" : "ct 5/26/2021 16:43",
Expand Down

0 comments on commit 74f3b67

Please sign in to comment.