git ssb


4+

Matt / patchwork



Should hashtags be interpreted as channels?

%1J7mVTuphhBktIOyBKj6M1o2He/taGmXL588GW/hP4I=.sha256
OpenMatt opened this issue on 11/17/2016, 1:59:53 AM

Should hashtags be interpreted as channels?

There are a few cases where this would be nice. For example, having #patchwork-next magically turn into a hyperlink.

Another thought: Should mentioning a channel assign that post to the given channel in the same way that at-mentioning a people in private messages includes them as recipients? Maybe we would need to allow multiple channels per post for this to be good.

%+oOVVuBBbuOCW4w0Mky6yjSIKwyZffe8ZjO4S2rU8aE=.sha256 Dominic · 11/17/2016, 2:55:38 AM

since we use markdown, you'd have to have to make sure that parsing markdown headers and hashtags is not ambigious. I think maybe headers are on their own line, with a space after? or maybe hashtags can't be the start of the first line?

Anyway, would merge #good-idea

%hQoUApwENPcdVN0xiLe9Bu51zk1t5FE4zyLg3e9/Vj8=.sha256 dinosaur · 11/17/2016, 6:42:36 PM

++ this and multiple channels per post

%ydcWCD5oY/F0gP08PPDMtVm3w/P34gBtOWl7H/ixRv4=.sha256 cel · 11/24/2016, 9:45:35 AM

I got some markdown working for this. However, my attempt was to be based on replacing the string channel value with a map {"chan1": 1, "chan2": 1}, which I thought would keep the ssb-query filter working. However, it instead causes ssb-query to crash (with a TypeError coming from bytewise). Is there a better way to do this, that is queryable?

%l/vxAakD0Es/HGvkymKZH08i1aFYAygp+grDj0ec3a8=.sha256 Dominic · 11/24/2016, 9:56:11 AM

ohh, this is actually not currently possible with ssb-query - we need a way to specify wildcard paths in flumeview-query / map-filter-reduce. we need this to do mentions too. So currently, you specify paths into objects like ['value', 'content', 'type'] but for mentions it would need to be something like ['value', 'content', true, 'name'] where true means any element in the array.

The second tricky bit, is that if an query hits an index that matches a message more than once, how do you handle that? do you stream that same message multiple times?

I do want to implement this, but in the short term, it might be easier to add this to ssb-links

cel mentioned this issue in earlier thread: [hashtags as channels](%1J7mVTuphhBktIOyBKj6M1o2He/taGmXL588GW/hP4I=.sha256)
%QlNRZ8qVHd+CITdB5RWCfAcX8QwW3+kAEHkTwsOCmF8=.sha256 cel · 1/28/2017, 1:29:38 AM

The second tricky bit, is that if an query hits an index that matches a message more than once, how do you handle that? do you stream that same message multiple times?

that would be okay. sbot.links does this sometimes so i'm already used to adding a pull.unique('key') in pipelines


Built with git-ssb-web