Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ログの他メッセージへのリンク #13

Open
thinca opened this issue Apr 22, 2020 · 2 comments
Open

ログの他メッセージへのリンク #13

thinca opened this issue Apr 22, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@thinca
Copy link
Member

thinca commented Apr 22, 2020

Slack の発言への permalink があった場合に、ログの該当発言へのリンクにしたい。

attachment には以下のような感じの JSON が入っているが、現状 struct に対応するキーがなくて JSON 変換時に欠落しているので、これを足してその後 html に反映させると良さそう。

{
    "from_url": "https://vim-jp.slack.com/archives/CXXXXXXXX/p1584589830473300",
    "fallback": "[March 18th, 2020 8:50 PM] user_name: hi",
    "ts": "1584589830.473300",
    "author_id": "UXXXXXXXX",
    "author_subname": "user_name",
    "channel_id": "CXXXXXXXX",
    "channel_name": "ch_name",
    "is_msg_unfurl": true,
    "text": "hi",
    "author_name": "user_name",
    "author_link": "https://vim-jp.slack.com/team/UXXXXXXXX",
    "author_icon": "https://avatars.slack-edge.com/2019-11-03/xxx.png",
    "mrkdwn_in": [
        "text"
    ],
    "id": 1,
    "original_url": "https://vim-jp.slack.com/archives/CXXXXXXXX/p1584589830473300",
    "footer": "Posted in #ch_name"
}
@thinca thinca transferred this issue from another repository May 4, 2020
@get-me-power get-me-power transferred this issue from another repository May 4, 2020
@get-me-power get-me-power added the enhancement New feature or request label May 4, 2020
@koron
Copy link
Member

koron commented May 8, 2020

お、これそろそろ着手できそうね?

@thinca
Copy link
Member Author

thinca commented May 8, 2020

struct にフィールドはそれぞれ足したので、テストのデータ用に export データの convert の再実行がいるかな。後でやっておきます。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants