cofacts

Month: 2021-10

2021-10-02

Hsu-Tzu Ting 09:28:49
@irene0503.ting has joined the channel
github2 15:04:59

<https://github.com/cofacts/rumors-line-bot/pull/292#issuecomment-932697705|Comment on #292 Redirect page>

*Pull Request Test Coverage Report for <https://coveralls.io/builds/43227581|Build 1297709786>* • *0* of *0* changed or added relevant lines in *0* files are covered. • No unchanged relevant lines lost coverage. • Overall coverage remained the same at *87.333%* * * * * * * *:yellow_heart: - <https://coveralls.io|Coveralls>*

2021-10-03

cai 17:00:43
https://cofacts.tw/article/2sx0dkbklsewg 廣告
很多種變體,都是在詐騙文下回然後要人加「賴」
感謝回報!
要想一下怎麼處理囧
這很明顯可以用使用者條款直接刪,問題是之後如何輕鬆列出新的這類 spam

或許應該 spammer monitor 增加 reply request 的處理
https://docs.google.com/spreadsheets/d/1BBObfTO7bLWERQ3nq3S1iBs3xt2o2TgOxikXqixOdYI/edit
由於 reply request 不像 reply 還有留存內文,所以有個 spreadsheet 放刪除前的原文讓大家檢視也是不錯
詐騙、追回、加賴 這三個關鍵字吧?
也可以抓165的open data https://data.gov.tw/dataset/78432
不過我丟進去找過沒符合的
看來他有在手動反偵測,一直變……
撈了一番,目前找到的事:
• 3 個帳號、59 篇要刪掉的補充,幫 2 個 LINE ID 打廣告
https://docs.google.com/spreadsheets/d/1Ytd69YU6z7Fgra81_79XrsPwQYV1Clh0yp5OZlk5Psg/edit

2021-10-05

fewa110010 04:49:16
@fewa110010 has joined the channel
github2 09:52:45

<https://github.com/cofacts/rumors-site/issues/397#issuecomment-933993423|Comment on #397 Reorder categories so that marked and categories from similar articles can appear earlier>

``` Move categories that has been added to the front Then list out categories that is also marked in similar articles Then the rest of the categories. ``` how to find the `Then list out categories that is also marked in similar articles` ? <https://github.com/MrOrz|@MrOrz>

github2 10:52:38

<https://github.com/cofacts/rumors-site/issues/397#issuecomment-934014767|Comment on #397 Reorder categories so that marked and categories from similar articles can appear earlier>

Hi <https://github.com/kelvin2go|@kelvin2go> , Thanks for taking a look! It can be retrieved by modifying the <https://github.com/cofacts/rumors-site/blob/master/pages/article/%5Bid%5D.js#L131|current GraphQL query> to include categories in `similarArticles`. ``` query LoadArticlePage($id: String!) { GetArticle(id: $id) { # ... Other fields ... similarArticles: relatedArticles { edges { node { # ... Other fields for the similar article ... articleCategories { categoryId } } } } # ... Other fields ... } } ``` <https://user-images.githubusercontent.com/108608/135952661-4a730cf3-f499-4c50-bb6c-3fb4f953cab9.png|image>

Andy Zhao 11:25:44
請問有沒有辦法能聯繫上Line 訊息查證部門的人呢?我想與ta們進行學術研究上的合作,但是聯絡了很久都沒有回覆
真的假的不是直接聯繫訊息查證的部門耶 > <
嗯⋯主要是,實在問不到了⋯有點慌不擇路w🤦‍♂️🏻抱歉!
kidstarkenny 11:26:49
之前是怎麼聯繫的呢?
官網上的“聯絡我們”
請問您能聯繫上ta們嗎?
github2 22:44:33

<https://github.com/cofacts/rumors-site/pull/452|#452 397 add sorted category for articles>

it seem my prettier a bit different than the original project @_@

mrorz 23:42:51
Cofacts LINE bot 的 docker image 裡面沒辦法發 request 到 GA 收 event 的 API,導致 LINE bot 文章點閱 10/3 大幅下降,10/4 直接歸零。

交叉測試的結果是,production server 本身還可以送 event 進去,但 production server 裡的 rumors-line-bot docker image 不行。

請問單兵該如何處置 QQ
image.png

g0v.hackmd.io

20211006 會議記錄 - HackMD

kelvinho84 2021-10-05 23:54:12
can it ping www.google-analytics.com from prod server?
From prod server:
> docker@debian:~/rumors-deploy$ ping www.google-analytics.com
> PING www-google-analytics.l.google.com (142.251.42.142) 56(84) bytes of data.
> 64 bytes from … (略) …
> --- www-google-analytics.l.google.com ping statistics ---
> 8 packets transmitted, 8 received, 0% packet loss, time 7077ms
> rtt min/avg/max/mdev = 0.540/0.597/0.644/0.041 ms
From *LINE bot docker container* within prod server:
> PING www.google-analytics.com <tel:(203.208.50.65|(203.208.50.65>): 56 data bytes
> 64 bytes from … (略) …
> --- www.google-analytics.com ping statistics ---
> 16 packets transmitted, 4 packets received, 75% packet loss
> round-trip min/avg/max = 105.746/190.202/228.356 ms
docker container 裡面 ping 會掉 packet 好神奇
兩個 resolve 到的 IP 也不一樣
Sooo weird
host machine 可以正常 resolve 但 container 裡面 resolve 到 google CN ._.
機器本體是在 linode 日本機房
kelvinho84 2021-10-06 00:03:54
how about `traceroute www.google-analytics.com`
Host machine:
(`A`, `B`, `C` and `D` are under same subnet of my machine’s IP address)
```docker@debian:~/rumors-deploy$ traceroute www.google-analytics.com
traceroute to www.google-analytics.com (142.251.42.142), 30 hops max, 60 byte packets
1 A (A) 0.578 ms B (B) 0.709 ms 0.848 ms
2 if-11-1-5-0.gw2.shg1.jp.linode.com (C) 0.462 ms if-0-1-5-0.gw2.shg1.jp.linode.com (D) 0.485 ms 0.458 ms
3 72.14.196.114 (72.14.196.114) 2.102 ms 72.14.223.216 (72.14.223.216) 0.404 ms 0.408 ms
4 108.170.242.97 (108.170.242.97) 0.552 ms 0.595 ms 108.170.242.129 (108.170.242.129) 1.615 ms
5 108.170.236.127 (108.170.236.127) 0.542 ms 0.550 ms 0.561 ms
6 nrt12s45-in-f14.1e100.net (142.251.42.142) 0.583 ms 0.567 ms 0.532 ms```
---
Docker container
(DOCKER_GATEWAY: IP address used by docker (172.18.x.x); `E` and `F` are under same subnet of my machine’s IP address)
``` /srv/www # traceroute www.google-analytics.com
traceroute to www.google-analytics.com <tel:(203.208.50.65|(203.208.50.65>), 30 hops max, 46 byte packets
1 DOCKER_GATEWAY (DOCKER_GATEWAY) 0.007 ms 0.006 ms 0.004 ms
2 A (A) 0.560 ms 0.519 ms B (B) 0.806 ms
3 if-11-0-0-0.gw2.shg1.jp.linode.com (E) 0.471 ms if-11-1-5-0.gw1.shg1.jp.linode.com (F) 0.638 ms 0.314 ms
4 ae-9.a00.tokyjp05.jp.bb.gin.ntt.net (192.80.16.5) 0.833 ms 1.315 ms 1.074 ms
5 ae-22.r02.tokyjp05.jp.bb.gin.ntt.net (129.250.4.7) 1.594 ms 1.793 ms 1.209 ms
6 202.97.94.13 (202.97.94.13) 90.094 ms xe-0.chinanet.tokyjp05.jp.bb.gin.ntt.net <tel:(129.250.66.10|(129.250.66.10>) 204.861 ms ae-22.r02.tokyjp05.jp.bb.gin.ntt.net (129.250.4.7) 1.411 ms
7 * xe-3.chinanet.tokyjp05.jp.bb.gin.ntt.net <tel:(129.250.66.90|(129.250.66.90>) 161.073 ms *
8 202.97.74.2 (202.97.74.2) 80.426 ms 202.97.74.34 (202.97.74.34) 52.750 ms 202.97.91.25 (202.97.91.25) 56.915 ms
9 202.97.62.73 (202.97.62.73) 54.355 ms 202.97.94.141 (202.97.94.141) 205.894 ms *
10 202.97.19.53 (202.97.19.53) 90.569 ms 202.97.13.157 (202.97.13.157) 86.509 ms *
11 101.95.88.133 (101.95.88.133) 55.874 ms 61.152.24.105 (61.152.24.105) 87.906 ms 61.152.25.109 (61.152.25.109) 95.932 ms
12 * 101.95.95.162 (101.95.95.162) 112.589 ms 101.95.116.138 (101.95.116.138) 96.343 ms
13 * * 101.95.116.138 (101.95.116.138) 95.539 ms
14 * 203.208.62.221 (203.208.62.221) 96.958 ms 203.208.62.2 (203.208.62.2) 225.663 ms
15 203.208.62.55 <tel:(203.208.62.55|(203.208.62.55>) 220.407 ms 203.208.62.2 (203.208.62.2) 229.029 ms 203.208.62.16 <tel:(203.208.62.16|(203.208.62.16>) 224.079 ms
16 * 203.208.50.65 <tel:(203.208.50.65|(203.208.50.65>) 220.497 ms 203.208.62.55 <tel:(203.208.62.55|(203.208.62.55>) 238.744 ms```
這樣我們送的 hit 會進中國的伺服器耶也太噁
nslookup 更神奇,這下連 host machine 也是指向中國⋯⋯

Host machine
```$ nslookup www.google-analytics.com
Server: <some-ip-under-same-subnet>
Address: <some-ip-under-same-subnet>#53

Non-authoritative answer:
www.google-analytics.com canonical name = www-google-analytics.l.google.com.
Name: www-google-analytics.l.google.com
Address: 203.208.50.65```
Docker container
```/srv/www # nslookup www.google-analytics.com
Server: 127.0.0.11
Address: 127.0.0.11:53

Non-authoritative answer:
www.google-analytics.com canonical name = www-google-analytics.l.google.com
Name: www-google-analytics.l.google.com
Address: 203.208.50.65

Non-authoritative answer:
www.google-analytics.com canonical name = www-google-analytics.l.google.com```
感謝 @kelvinho84 通靈 m(_ _)m

鬼故事如下
我的 linode 的 network 是有開 network helper ( https://www.linode.com/docs/guides/network-helper/ ) 的。所以,Linode 會幫我管理 `/etc/resolv.conf`
所以我的 /etc/resolve.conf 長這樣
```# Generated by Linode Network Helper
# Thu Sep 16 18:08:49 2021 UTC
#
# This file is automatically generated on each boot with your Linode's
# current network configuration. If you need to modify this file, please
# first disable the 'Auto-configure Networking' setting within your Linode's
# configuration profile:
# - https://cloud.linode.com/linodes/2569620/advanced
#
# For more information on Network Helper:
# - https://www.linode.com/docs/platform/network-helper
#
# A backup of the previous config is at /etc/.resolv.conf.linode-last
# A backup of the original config is at /etc/.resolv.conf.linode-orig
#
domain members.linode.com
search members.linode.com
nameserver 第一台
nameserver 第二台
nameserver 第三台
options rotate```
而下面分別是我的 hostmachine 使用 8.8.8.8 以及這三台 linode name server resolve 出來的結果:
```host-machine:~# nslookup www.google-analytics.com 8.8.8.8
Server: 8.8.8.8
Address: 8.8.8.8#53

Non-authoritative answer:
www.google-analytics.com canonical name = www-google-analytics.l.google.com.
Name: www-google-analytics.l.google.com
Address: 172.217.160.78

host-machine:~# nslookup www.google-analytics.com 第一台
Server: 第一台
Address: 第一台#53

Non-authoritative answer:
www.google-analytics.com canonical name = www-google-analytics.l.google.com.
Name: www-google-analytics.l.google.com
Address: 203.208.50.65

host-machine:~# nslookup www.google-analytics.com 第二台
Server: 第二台
Address: 第二台#53

Non-authoritative answer:
www.google-analytics.com canonical name = www-google-analytics.l.google.com.
Name: www-google-analytics.l.google.com
Address: 142.251.42.142

host-machine:~# nslookup www.google-analytics.com 第三台
Server: 第三台
Address: 第三台#53

Non-authoritative answer:
www.google-analytics.com canonical name = www-google-analytics.l.google.com.
Name: www-google-analytics.l.google.com
Address: 216.58.197.238```
三台 name server 說的 `www.google-analytics.com` 位置都不同,但第一台 name server 回傳的 IP 「203.208.50.65」指向中國
然後又因為 docker container 會取用 host machine 的 /etc/resolv.conf ( https://docs.docker.com/config/containers/container-networking/#dns-services )
所以我的 line bot docker container somehow 就把 `www.google-analytics.com` 解析成了 googlecn 203.208.50.65
我把 host machine 上的 /etc/resolv.conf 的第一台 name server comment 掉之後重開 line bot 的 container

資料就能正常的送進 google analytics 了⋯⋯
kelvinho84 2021-10-06 08:49:57
DNS ! 那 docker image 是用一個 base 去build ?
😲 1

2021-10-06

github2 00:02:54

<https://github.com/cofacts/rumors-site/pull/452#issuecomment-934544622|Comment on #452 397 add sorted category for articles>

&gt; it seem my prettier a bit different than the original project @_@ <https://github.com/kelvin2go|@kelvin2go> You can run `npm run lint:fix`.

github2 00:31:55

<https://github.com/cofacts/rumors-site/pull/452#issuecomment-934570007|Comment on #452 397 add sorted category for articles>

<https://coveralls.io/builds/43285251|Coverage Status> Coverage remained the same at 75.261% when pulling *<https://github.com/cofacts/rumors-site/commit/c438ace8003e1cc84cd27b693eeefda8ca4a449f|c438ace> on kelvin2go:feature/397-reorder-caterogries* into *<https://github.com/cofacts/rumors-site/commit/7ed37f817d534ed683848a46763a248442310f99|7ed37f8> on cofacts:master*.

github2 01:54:27

Review on #452 397 add sorted category for articles

LGTM! Thanks for implementing this!

cai 11:02:29
會議記錄舉報按鈕那條,`舉報`建議改成`檢舉`或`回報濫用`
一般討論區沒必要用到舉報這詞XD
好的感謝感謝
github2 12:45:23

<https://github.com/cofacts/rumors-site/issues/397#issuecomment-935440507|Comment on #397 Reorder categories so that marked and categories from similar articles can appear in the front>

Closed via <https://github.com/cofacts/rumors-site/pull/452|#452> . Kudos to <https://github.com/kelvin2go|@kelvin2go> :raised_hands:

mrorz 12:53:10
今日會議紀錄
https://g0v.hackmd.io/@mrorz/cofacts-meeting-notes/%2FzlWWCpDTQ5iADHNw7Thpog

HackMD

Cofacts 會議記錄 - HackMD

# Cofacts 會議記錄 ## 2021 - [20211006 會議記錄](/zlWWCpDTQ5iADHNw7Thpog) - [20210929 會議記錄](/5VRwpbcJSlSP

mrorz 14:18:48
中午開放報名的大松,已經超過一半滿囉
名額有限要搶要快!

:schmusekatze::point_right: <https://g0v-jothon.kktix.cc/events/g0v-hackath46n>

📈 2
Carmen 15:36:21
想請問cofacts的各位,大松當天現場會有人去提案嗎?還是說會採線上提案方式?
我會去ㄛ
謝謝!那發表內容我就知道,是上次比鄰的回覆那樣是吧?
謝謝你!我去把它簡單轉譯成日文,要跟節目組開會。
謝謝回覆。
謝謝~~~~
github2 17:41:32

<https://github.com/cofacts/rumors-site/pull/453|#453 add github like contribution graph css and ceil for 1,2 report count>

<https://github.com/cofacts/rumors-site/issues/413|#413> • math.ceil for 1,2 • add github contribution graph like css <https://user-images.githubusercontent.com/2888757/136179050-87baa028-a0ca-44ae-8429-7076f1e578a3.gif|screen-capture (1)>

:white_check_mark: No checks have passed

2021-10-07

mrorz 12:00:20
我發現 Wikipedia 的封禁(block)會告知對方自己被封禁耶
https://zh.wikipedia.org/wiki/Wikipedia:%E5%B0%81%E7%A6%81%E6%96%B9%E9%92%88

Wikipedia 對外送茶 (?) 這類廣告行為的做法,似乎不用怕對方說會換帳號或 IP 之類的,跟昨天 Cofacts 會議中討論的做法(不讓廣告業者發覺自己被封鎖,但隱藏所有他的廣告文)相反。

Wikipedia:封禁方针

封禁,又称封锁或查封,是管理员阻止用户参与维基百科编辑的手段。封禁的目的只有一個,就是防止维基百科遭到持续或严重破坏,而绝非惩罚用户。 用户可以在当前的破坏页面或者本文提及的其他页面中提议封禁,提议的同时亦应提供充分的证据,但管理员有权拒绝执行被提议的封禁,并可以进行独立的调查。如果您认为某一个封禁不合理,请在使用者討論頁使用{{Unblock}}或向管理员发電子郵件讨论。

github2 14:49:30

<https://github.com/cofacts/rumors-site/pull/453#issuecomment-937504328|Comment on #453 add github like contribution graph css and ceil for 1,2 report count>

``` adaptive max contribution max(10, max(user_contribution)) 作為 contribution graph 的 max scale ``` for this, should it changes max scale to 10 ? <https://github.com/cofacts/rumors-site/pull/453/files#diff-b170cff4fb01eac4d00fe240d828301e6e8900a7ae3443ad833eeff2a6d64d8fR13|https://github.com/cofacts/rumors-site/pull/453/files#diff-b170cff4fb01eac4d00fe240d828301e6e8900a7ae3443ad833eeff2a6d64d8fR13> and for test part should i update the story snapshot after implement?

2021-10-10

github2 13:35:05

<https://github.com/cofacts/rumors-site/pull/453#issuecomment-939410341|Comment on #453 add github like contribution graph css and ceil for 1,2 report count>

Sorry for the late reply, and thanks for taking this issue! • Current coloring of attribution is fixed at 5 contributions per level (`SCALING_FACTOR`). Therefore, daily contribution must exceed 23 (`23 / SCALING_FACTOR = 4.6 ~= 5`) to be painted to deepest color. • The _adaptive max contribution proposal_ wants that max scale to adapt to each user. For example, if the max contribution count of the user is 16 for the past 365 days, we should color the contribution count 1 ~ 4 with light color, 5 ~ 8 with deeper color, 9 ~ 12 with 2nd deeper color, and 13 ~ 16 with deepest color. • However, if the max contribution count of the user for the past 365 days is lower than 10, it would be a bit unfair for other contributors if we also paint those contribution as deepest color. Therefore, in the proposal we added a max-contribution lower-bound: if the max contribution count of the user for the past 365 days is lower than 10, we will use 10 when calculating the color scale. If we put it in code, • `MAX_SCALE` remains 4, as available `colorCofactsN` still ranges from `colorCofacts0` to `colorCofacts4`. • `SCALING_FACTOR` (number of contributions needed to go to the deeper color) should no longer be a constant across different users. If max contribution in `data` is below 10, the scaling factor is `10/MAX_SCALE = 2.5`; otherwise, it is `max contribution / MAX_SCALE`. • The logic of `scaleColor` is `Math.max(Math.min(Math.ceil(count / varingScalingFactor), MAX_SCALE), 0)`. The inner-most `Math.ceil` is identical to your current PR :+1: And yes, the storyshot should be updated and attached to the PR, so that we can know there are DOM changes in the PR :eyes:

Tony Duan 14:29:33
@tony84727 has left the channel

2021-10-11

聞英佐 01:11:50
@ahgigi95 has joined the channel
mrorz 12:38:48
我在實作 block user 的時候,覺得如果要實作「被封鎖的使用者登入的話會看得到自己的東西」這件事情,那就必須解決現在 SSR 會吃不到使用者 login cookie 的問題。

因此,我想要把網站的所有 API request 從直接造訪 api.cofacts.tw 改成一個 `/api` endpoint,他背後會 proxy_pass 到 API server。這樣無論使用者是到 cofacts.org 還是 cofacts.tw 還是 cofacts.g0v.tw,打 API 的時候,SSR 與 API 通通都是同一個網域,既沒有 CORS 問題,也沒有 SameSite cookie 問題。

這個方案之前有提過:https://github.com/cofacts/rumors-api/issues/186#:~:text=Method%202%3A%20use%20same-site%20APIs%20whenever%20possible
之前也有看過其他網站(忘記哪個了⋯⋯)這樣做,我在工作上也在用這個同網域 api proxy 的技巧。

這個方案也可以解決
• iOS 12 login issue https://github.com/cofacts/rumors-api/issues/259
• 網站不需要再分第一次 SSR 的 request 與第二次登入 cookie 的 request,第一個 SSR request 就吃得到 login cookie 所以可以直接 render logged in state 下看得到的東西
但有一個缺點:
• github 登入未來只能在一個網域生效。由於 github oauth app 只能設定一個 valid redirect URL,因此如果我們設定為 cofacts.tw/api/callback/github ,那麼 cofacts.org, cofacts.g0v.twold.cofacts.tw 就通通不能登入 github ㄌ。
lucien 23:43:20
終於要走proxy了讚讚
lucien 23:43:39
我過去所有專案都是走proxy

2021-10-12

mrorz 02:37:17
結果沒能在 next.js 上架好 proxy (掩面
屍體:
https://github.com/cofacts/rumors-site/tree/api-proxy

或許不要透過 nextjs api route 而是直接把 proxy 放在 server.js 比較直接些。
另外,現在版本的 next-apollo 也太舊,沒辦法拿到 browser 送來的 cookie 轉送給 API。要改進這個的話乾脆直接升級 next.js,改寫邏輯丟掉 next-apollo 比較好。

因為上面這些很麻煩,最近應該不會碰 proxy 了,後來覺得 block user 不一定需要讓 SSR 吃到 login cookie 送往 APIP,只要能吃到 rumors-site 自己設的 cookie,就能決定是不是要 SSR~
Kevin Chen 10:07:16
@jwsh09910062 has joined the channel
github2 13:26:31

<https://github.com/cofacts/rumors-line-bot/issues/294|#294 TypeError: Cannot destructure property 'articleReplies' of 'e' as it is null.>

View details in Rollbar: <https://rollbar.com/mrorz/rumors-line-bot/items/539/|https://rollbar.com/mrorz/rumors-line-bot/items/539/> ``` TypeError: Cannot destructure property 'articleReplies' of 'e' as it is null. File "<https://line-bot.cofacts.tw/liff/index.f45801dc3131a2f90145.js>", line 1, in [anonymous] File "<https://line-bot.cofacts.tw/liff/index.f45801dc3131a2f90145.js>", line 1, in wr File "<https://line-bot.cofacts.tw/liff/index.f45801dc3131a2f90145.js>", line 1, in i ``` Can be reproduced: <https://user-images.githubusercontent.com/108608/136896754-60e0a7b6-ba03-440f-8f9f-0185bb7ce81e.png|image> Root cause: the `articleId` is malformed and thus `GetArticle` field returns null. Proposed fix: gracefully fallback to an error text

github2 14:52:01

<https://github.com/cofacts/rumors-line-bot/pull/295#issuecomment-940717091|Comment on #295 Redirect LIFF &amp; article LIFF fixes>

*Pull Request Test Coverage Report for <https://coveralls.io/builds/43431587|Build 1331940430>* • *0* of *0* changed or added relevant lines in *0* files are covered. • No unchanged relevant lines lost coverage. • Overall coverage remained the same at *87.333%* * * * * * * *:yellow_heart: - <https://coveralls.io|Coveralls>*

2021-10-13

2021-10-14

pengs05 09:30:49
@pengs05 has joined the channel

2021-10-15

cai 00:38:16
https://cofacts.tw/article/102wtths7w9ft
https://cofacts.tw/article/2edbicuinv0fi
話說這種明明知道是民間自己開發的非官方工具要怎麼寫回答 🤔
看了下原始碼,只是單純比對數字,很多規則都沒考慮到
看了下原始碼,只是單純比對數字,很多規則都沒考慮到
哎呀沒有看到 @iacmai 留言 QQ
當天中午回了一份
那時候因為看到短時間回報數超高就丟這裡問了
我有看到回答XD
後來我試著用一種「鼓勵民間自主開發但不要幫他背書」的語氣,列出事實(以及以上事實的時間),也提醒大家 open source solution 是 no warrenty 的這樣~
github2 15:27:55

<https://github.com/cofacts/rumors-site/pull/453#issuecomment-944064478|Comment on #453 add github like contribution graph css and ceil for 1,2 report count>

<https://github.com/MrOrz|@MrOrz> I updated varingScalingFactor and the snapshot. Can you check it ? but snapshot test seem fail on other component. ``` modified: components/AppLayout/AppHeader.js modified: components/AppLayout/AppSidebar.js modified: components/AppLayout/__snapshots__/UpgradeDialog.stories.storyshot modified: components/ArticleCategories/CategoryOption.js modified: components/ArticleReplyFeedbackControl/__snapshots__/ArticleReplyFeedbackControl.stories.storyshot modified: components/Infos/__snapshots__/Infos.stories.storyshot modified: components/ListPageControls/__snapshots__/BaseSortInput.stories.storyshot modified: components/ListPageControls/__snapshots__/BaseTimeRange.stories.storyshot modified: components/ListPageControls/__snapshots__/Filters.stories.storyshot modified: components/ListPageControls/__snapshots__/LoadMore.stories.storyshot modified: components/ProfilePage/UserPageHeader.js modified: components/ReportPage/__snapshots__/ActionButton.stories.storyshot modified: components/__snapshots__/Hyperlinks.stories.storyshot modified: components/__snapshots__/TrendPlot.stories.storyshot modified: components/__snapshots__/icons.stories.storyshot ```

2021-10-16

github2 14:27:19

<https://github.com/cofacts/rumors-site/pull/453#issuecomment-944866607|Comment on #453 add github like contribution graph css and ceil for 1,2 report count>

<https://github.com/kelvin2go|@kelvin2go> It seems that your local material-ui version is different from this project. You can try the command writing in <https://github.com/cofacts/rumors-site#storybook|README.md> : ``` # install the same npm package as this project npm install # run test and update snapshot npm test -- -u ```

github2 14:51:05

<https://github.com/cofacts/rumors-site/pull/453#issuecomment-944869043|Comment on #453 add github like contribution graph css and ceil for 1,2 report count>

&gt; <https://github.com/kelvin2go|@kelvin2go> It seems that your local material-ui version is different from this project. &gt; &gt; You can try the command writing in <https://github.com/cofacts/rumors-site#storybook|README.md> : &gt; &gt; ``` &gt; # install the same npm package as this project &gt; npm install &gt; &gt; # run test and update snapshot &gt; npm test -- -u &gt; &gt; ``` hi <https://github.com/nonumpa|@nonumpa>, i only changed components/ContributionChart.js so i update only components/*snapshots*/ContributionChart.stories.storyshot or when i run `test -- -u` it changed other files as below. shoud i updated it to branch as well? ``` modified: components/AppLayout/__snapshots__/UpgradeDialog.stories.storyshot modified: components/ArticleReplyFeedbackControl/__snapshots__/ArticleReplyFeedbackControl.stories.storyshot modified: components/Infos/__snapshots__/Infos.stories.storyshot modified: components/ListPageControls/__snapshots__/BaseSortInput.stories.storyshot modified: components/ListPageControls/__snapshots__/BaseTimeRange.stories.storyshot modified: components/ListPageControls/__snapshots__/Filters.stories.storyshot modified: components/ListPageControls/__snapshots__/LoadMore.stories.storyshot modified: components/ReportPage/__snapshots__/ActionButton.stories.storyshot modified: components/__snapshots__/Hyperlinks.stories.storyshot modified: components/__snapshots__/TrendPlot.stories.storyshot modified: components/__snapshots__/icons.stories.storyshot ```

github2 15:26:42

<https://github.com/cofacts/rumors-site/pull/453#issuecomment-944873152|Comment on #453 add github like contribution graph css and ceil for 1,2 report count>

It's abnormal, and I guess other .storyshot files also change `className="makeStyles-tooltipText-311"` to `className="makeStyles-tooltipText-74"`. Maybe you can google the keyword "npm local vs global package" to solve this problem. * * * Explanation of why I guess your local material-ui version is different from this project and why it should not have `className="makeStyles-tooltipText-*"` change : First, we take a look at the .storyshot change <https://user-images.githubusercontent.com/6376572/137577194-cab342b0-5ae3-476c-aae8-a34754e39afa.png|snapshot> And then look what <https://github.com/cofacts/rumors-site/runs/3903371438|CI test> result says &gt; line 35 and 36 means &gt; It should be `aria-hidden="true"` not `aria-hidden={true}` &gt; line 48 and 49 means &gt; It should be `className="makeStyles-tooltipText-311"` not `className="makeStyles-tooltipText-74"` That means only `className="makeStyles-colorCofacts*"` is the right change. This makes sense because you only change the function `scaleColor` which only affects `colorCofacts*`.

github2 21:58:02

<https://github.com/cofacts/rumors-site/pull/453#issuecomment-944919232|Comment on #453 add github like contribution graph css and ceil for 1,2 report count>

hi <https://github.com/MrOrz|@MrOrz> , after test with <https://github.com/nonumpa|@nonumpa> look like "@material-ui/core": "^4.9.7", 4.9.9 can pass the test. not sure, which version is CI using @@'

github2 22:33:17

<https://github.com/cofacts/rumors-site/pull/453#issuecomment-944924303|Comment on #453 add github like contribution graph css and ceil for 1,2 report count>

<https://coveralls.io/builds/43552123|Coverage Status> Coverage increased (+0.03%) to 75.295% when pulling *<https://github.com/cofacts/rumors-site/commit/c650642af23d91000f74a9beb89ae511c711990d|c650642> on kelvin2go:feature/413-contribution-graph-enhancements* into *<https://github.com/cofacts/rumors-site/commit/8c26bbb82ca329429f6be3b2aa4163e4327b4dbd|8c26bbb> on cofacts:master*.

github2 23:10:53

<https://github.com/cofacts/rumors-site/pull/453#discussion_r730274510|Comment on #453 add github like contribution graph css and ceil for 1,2 report count>

`varingScalingFactor` should vary according to _max contribution count_; `count` is the contribution count of the current cell and should not be used when calculating `varingScalingFactor`. The current logic will make any contribution count &gt;= 10 colored in the deepest color (because in this case, `count / varingScalingFactor` = `count / (count / MAX_SCALE)` = `MAX_SCALE`); however, what we want in the <https://github.com/cofacts/rumors-site/pull/453#issuecomment-939410341|comment> is that the `varingScalingFactor` scales according to _max contribution count_ instead of `count`. We will need to calculate the max contribution count in a place that is accessible to such data (such as in `ContributionChart`. There is already a `total` const being calculated there, max contribution count should be calculated in a similar fashion) and passed to `scaleColor` as a new argument.

github2 23:10:54

Review on #453 add github like contribution graph css and ceil for 1,2 report count

Thanks for trying to fix this issue! An implementation detail of color scale is attached below.

2021-10-18

2021-10-20

github2 12:50:08

<https://github.com/cofacts/rumors-site/pull/453#discussion_r732412011|Comment on #453 add github like contribution graph css and ceil for 1,2 report count>

Should be Suggested change Current logic will cause `count` &lt; 10 to have deeper color than `count` &gt; 10. <https://user-images.githubusercontent.com/64118746/138030035-33831f87-3124-4c54-b1c3-75ece6e718e1.gif|8-10>

github2 12:58:10

Review on #453 add github like contribution graph css and ceil for 1,2 report count

Now the new color system and mobile style is working as expected. Thank you for the fix!

mrorz 13:00:38
今日會議記錄
https://g0v.hackmd.io/@mrorz/cofacts-meeting-notes/%2FwNhf1vDGQd6J2Plp4u4Ebg

HackMD

Cofacts 會議記錄 - HackMD

# Cofacts 會議記錄 ## 2021 - [20211020 會議記錄](/wNhf1vDGQd6J2Plp4u4Ebg) - [20211013 會議記錄](/0Cv5hmmAQYyW

2021-10-21

github2 20:04:57

<https://github.com/cofacts/rumors-site/pull/454|#454 Adjust ContributionChart coloring>

Adjust coloring again to make contributions obvious for both low contribution and high contribution users. • For users with max contribution &gt;= 20, it takes 5 contribution to advance to next color. • This is the same as before <https://github.com/cofacts/rumors-site/pull/453|#453> is merged • For users with max contribution &lt;= 8, it only takes 2 contribution to advance to next color. • So that new users in editor's meetup can see their color deepen faster • For users with max contribution in between, the coloring step scales propotionally. *Screenshots* In the screenshots below, the maximum daily contribution is `29`. *Before <https://github.com/cofacts/rumors-site/pull/453|#453>* • Takes 5 contribution to advance to next level • However, coloring is rounded (`Math.round(count / 5)`) so that there is no color for count = 1 or 2. <https://user-images.githubusercontent.com/108608/138272171-995a85c3-7e34-497b-ae8b-ad9b1e6d00fa.png|image> *Current production (<https://github.com/cofacts/rumors-site/pull/453|#453> )* • days with contribution 1, 2 lights up (by `Math.ceil` in <https://github.com/cofacts/rumors-site/pull/453|#453>) • However, some cell's contribution color become lighter because maximum color is scaled to 29. <https://user-images.githubusercontent.com/108608/138271901-646dfc0c-5da9-4cd6-87d7-15d59b6edfe2.png|image> *This PR* • As max contribution &gt; 29, it is colored as if max contribution is 20. • Advance to next color every 5 contributions. • Any contribution &gt;= 16 will be colored in deepest color. • As a result, the color of many cells are deepened. <https://user-images.githubusercontent.com/108608/138272024-d5eee79c-86ad-4476-af48-9ee421dacfe2.png|image> *Users with fewer contribution or no contributions* <https://user-images.githubusercontent.com/108608/138276349-22bb512f-82e2-4dab-8099-b622df95c411.png|image> <https://user-images.githubusercontent.com/108608/138276412-6dd02866-fc39-4018-a6b3-7ebfb148865b.png|image>

:white_check_mark: All checks have passed

github2 20:08:23

<https://github.com/cofacts/rumors-site/pull/454#issuecomment-948548548|Comment on #454 Adjust ContributionChart coloring>

<https://coveralls.io/builds/43668031|Coverage Status> Coverage increased (+0.07%) to 75.363% when pulling *<https://github.com/cofacts/rumors-site/commit/d808d14593823bcb51d7dcdba4bec1d9f21ba219|d808d14> on adjust-contrib-chart* into *<https://github.com/cofacts/rumors-site/commit/3b5ad977ad3278f8c7abd8df3b86cc86b69abd5b|3b5ad97> on master*.

2021-10-22

Jason Wang 10:17:42
@yuw545 has joined the channel
Carmen 18:59:07
請問#cofacts的各位,明天會參加實體現場大松外,會有在Gather Town的線上討論嗎?想跟各位確認一下。

請容我簡介說明,
我是Carmen,其中一個工作是幫日本各電視媒體,最主要是幫NHK(日本放送協會)的事前溝通/寫拍攝腳本/疫情關係採訪也常要自己來的節目企劃。
在零時政府g0v這方面,目前為止策劃了幾個g0v 相關的節目。包括今年六月完成播出的「disfactory 農地違章工廠」的報導。至今都還在構思更多與g0v各project相關的發展採訪報導
因為明天10/23的採訪中需要一些實體討論與線上討論畫面,來剪輯成播出片段。
所以在此先詢問各位,能否有人能協助錄製明天大松的 gather town「cofacts」這project線上會議室內的討論?只要在討論期間從電腦的螢幕錄製擷取兩段各3分鐘左右就可以了。
請讓我在此先謝謝大家🙏

下面這段連結是五月時與 #disfactory 的member完成的。當中線上會議也被剪輯進了播報片段,雖然是日文,
還請各位有興趣的可以參考一下。

https://www.dailymotion.com/video/x81ne3e?fbclid=IwAR1uLSJIpmhoFQwBvD63MpxM7bvuOF9remy9_2_NagjthKmk6bUrZX7avjo

Dailymotion

国際報道2021「台湾 “シビックハッカー”たちの社会革命」 0310 202106010139 - 動画 Dailymotion

国際報道2021「台湾 “シビックハッカー”たちの社会革命」 0310 202106010139を見る - Dailymotionでyk4tvを視聴

好的
不過今天現場網路不太穩定,原本也沒有想到有線上的會議室 🙏
我們會試試看
感謝🙏
isabelhou 20:12:58
@bil 韓國的朋友明天下午兩點會線上加入。
👍 3

2021-10-23

nellysu851971 09:37:57
@nellysu851971 has joined the channel
CH 10:14:05
@colocolo317 has joined the channel
江老翰 10:14:58
@jiangchenghans has joined the channel
William Liu 10:57:07
@williamliu5168 has joined the channel
isabelhou 11:27:19
請cofacts的大家,寫一下cofacts的大事記在時間軸上,萬分感謝!https://docs.google.com/spreadsheets/d/1gIku-jEaW492fSz4iMkXyFyYLpePfWLBmrtCd2LFLvE/edit#gid=1467627135
❤️ 2
chihao 12:23:57
cofacts 在明年 10 月(10 週年前後)會有小聚或小松嗎? 😄 願意加入嘉年華的行列嗎?
有喔
factober
hacktober techtober factober
🌸 2
nonumpa 12:41:05
這則訊息很有趣,都是網頁瀏覽
`我想補充` 留言大亂鬥
https://cofacts.tw/article/29bxfsspd2t95
是操作下線來留言嗎 QQ
好酷喔
居然變成孤狗評價的一種
@lucien 這種狀況要怎麼排版比較好囧
replyrequest 爆炸多然後很奇怪的狀況 (?
我想一下
這個留言大亂鬥莫名戳中我採訪一天的疲憊超弱笑穴
😯 1 😮 1
github2 13:56:46

<https://github.com/cofacts/rumors-line-bot/pull/296#issuecomment-950092702|Comment on #296 Add Korean translation>

*Pull Request Test Coverage Report for <https://coveralls.io/builds/43716770|Build 1374844925>* • *0* of *0* changed or added relevant lines in *0* files are covered. • No unchanged relevant lines lost coverage. • Overall coverage remained the same at *87.333%* * * * * * * *:yellow_heart: - <https://coveralls.io|Coveralls>*

yuchen kao 14:24:49
@kaoyuchen has joined the channel
github2 15:24:18

<https://github.com/cofacts/rumors-site/pull/455#issuecomment-950109609|Comment on #455 Add Korean translation>

<https://coveralls.io/builds/43717184|Coverage Status> Coverage remained the same at 75.363% when pulling *<https://github.com/cofacts/rumors-site/commit/557ba7b1156b3a5e9d4f507518cdc1848d9f791b|557ba7b> on ko* into *<https://github.com/cofacts/rumors-site/commit/9a68c273d1fa0199fc8c39f6426117b3ad3fce2e|9a68c27> on master*.

2021-10-24

Leopold緯哲 17:40:06
@chelee0510 has joined the channel

2021-10-25

github2 01:38:23

<https://github.com/cofacts/rumors-api/pull/263#issuecomment-950364109|Comment on #263 Mutation adds status>

<https://coveralls.io/builds/43725250|Coverage Status> Coverage increased (+0.09%) to 86.137% when pulling *<https://github.com/cofacts/rumors-api/commit/2a03a7195fa914c4db671d9a0a48a158b086ad0a|2a03a71> on mutation-adds-status* into *<https://github.com/cofacts/rumors-api/commit/5e1fbd126ffc46a0f6b0e54009599b6321e81ab7|5e1fbd1> on master*.

2021-10-27

mrorz 16:26:17
發現一個奇妙的起手式
「我本身有在做金融平台的投資 目前在⋯⋯」「所以需要請人幫我顧」
https://cofacts.tw/article/2hliscsstl4cy 與旁邊的相似可疑訊息
「工作內容是 我會給你我的個人外幣帳號」「會有人親自指導你」「不用擔心沒有經驗」
https://cofacts.tw/article/22repgc8bltjp
https://cofacts.tw/article/vagfgfyhlj2v 喔喔喔這裡有人在我想補充把完整話術與平台與帳號密碼都貼出來了 XDD
😮 2
mrorz 20:31:04
btw 12/18 要公投ㄛ
(尚無移轉投票,所以有些人可能要返鄉)

2021-10-28

cai 13:27:48
發現另一個奇怪的關聯,都提到同一位IG
https://cofacts.tw/article/2zq2sp8f1frzq
https://cofacts.tw/article/1bsq72pcj6ayl

這兩個應該是連一起?
https://cofacts.tw/article/j0vjy1hoe245
https://cofacts.tw/article/1bsq72pcj6ayl
舊版 cofacts 有「列出相同回報者文章」的功能
https://old.cofacts.tw/articles?searchUserByArticleId=j0vjy1hoe245&filter=all&replyRequestCount=1

或許新版網站依然會需要這個功能呢 cc/ @lucien
你是說從 A 文的回報者,找他所有回報文章嗎
如果是從回報補充說明的頭像點過去,到此回報者的文章列表這樣設計應該是可以的
問題可能是同回報者的文章列表,有沒有現成 UI componet 直接兜一下
cai 16:18:14
許願個功能,回報時能多個問題問`有影片還是圖片嗎?` 這種比較直接的問題
若回答有→網站上的分類標籤多一個`有影片`/`有圖片`,要查資料前比較有頭緒
單靠`還有什麼要補充的`這有點通靈😅
不過,有圖片但送不進來的話
對查核者來說,應該會跟現況差不多
一樣還是要拿文字去 FB 或其他地方查查看
我想可能直接實作收圖片並顯示的功能會比較好
https://g0v.hackmd.io/aJqHn8f5QGuBDLSMH_EinA

只是跟週三會議紀錄裡面提到的東西比起來,直接收圖片可能要排到 2022 QQ
我下禮拜應該可以先把圖片換到 google cloud storage,再看看後續要怎麼做比較好
🔮 2

2021-10-31

cai 19:54:42
週期性廣告又出現了 😆
https://cofacts.tw/article/bxr758i2nt4b
https://cofacts.tw/article/11yty5iup3p9o
https://cofacts.tw/article/lysvqu9lc3sa
https://cofacts.tw/article/2a7fw9bjm9z48
感謝回報,已經清除囉!
Ohhh 有個新人呀
@iacmai 是廣告偵測機器人嗎 XD
`等你來答`浮出來的XD
剛看到3Q那邊有澄清想說要不要把昨天寫的回應改掉,順便看一下`等你來答` 就發現了
有人按讚超煩
已經把這些補充欄的作者補進 spreadsheet 了
感謝回報 m(_ _)m
https://docs.google.com/spreadsheets/d/1Ytd69YU6z7Fgra81_79XrsPwQYV1Clh0yp5OZlk5Psg/edit#gid=0
又有新的
https://cofacts.tw/article/35s3oqkdq8qys
https://cofacts.tw/article/1cxozq9qv0419
https://cofacts.tw/article/2oohq47wv9043



https://cofacts.tw/article/5480703300823-rumor
變體來了,丟連結然後叫人連結文章的留言區,結果又跟之前一樣加賴 😆
丟帳號google得到一個律師名字跟律師證號,網頁點進去查無資料
再丟去律師查詢系統 名字查無資料,證號根本不同人

這堆要人加*賴*
又有新的,都同一位,太多篇懶得翻了
https://cofacts.tw/article/35s3oqkdq8qys
https://cofacts.tw/article/1cxozq9qv0419
https://cofacts.tw/article/2oohq47wv9043
https://cofacts.tw/article/5drsegt3owa8
https://cofacts.tw/article/1nlqbb03g7pit


變體
https://cofacts.tw/article/5480703300823-rumor
丟連結然後叫人連結文章的留言區,結果又跟之前一樣加賴 😆
丟帳號google得到一個律師名字跟律師證號
https://i.imgur.com/W45mZAK.png
https://www.law110.com.tw/forum_content.aspx?pid=1364230 點個人進去查無資料
再丟去律師查詢系統 名字查無資料,證號根本不同人
spreadsheet 又有新人進帳了~
這些廣告真的很詭異囧
新人~~ 一樣是舊串浮出發現
https://cofacts.tw/article/3ojnst2jfbbgi

可以推測是 https://cofacts.tw/search?type=messages&q=詐騙 去每篇留
看到就倒讚方便辨認新人
https://cofacts.tw/article/AV__-TGbyCdS-nWhuj2z
又一個新的,好像可以開個專文來研究😆
確定是用`詐騙` 當關鍵字去搜尋的
1. 這篇不是詐騙也留 :laughing:
2. 搜尋結果第一篇 幾乎每天有新人
那個搜尋結果第一篇非常驚人!
現在我們的列表裡面有三位「建志」、兩位「郭子源」惹
https://docs.google.com/spreadsheets/d/1Ytd69YU6z7Fgra81_79XrsPwQYV1Clh0yp5OZlk5Psg/edit#gid=0
Ohhh 那個郭子源就是之前 @iacmai google 到的「律師」耶
規則好像有變,用詐騙搜尋第一則這兩週看會不准
似乎改找搜尋結果在N個月內的回應?[ 待確認 ]