Parsing partial quotes from nested quotes?

Had the following situation pop up today:

User A:

And yes… It’s been dark times lately… Cursing is just what helps release the stress

User B:

Post from User A:
And yes… It’s been dark times lately… Cursing is just what helps release the stress

Also, he doesn’t discriminate to one form of communication… Just check his Tweets… He can also write it as he speaks it…

User C (Quotes User A, but via User B’s post):

Post from User B
And yes… It’s been dark times lately… Cursing is just what helps release the stress

So much hatred. Have you thought about going and talking to someone?

User B:

Hey User C! Somehow it looks like I wrote that!

User C:

Post from User B:
Hey User C! Somehow it looks like I wrote that!

I am so lost User B, who did what?

User C wasn’t malicious… They are just a less sophisticated user.

Suggestion here that when a quote only refers to a nested quote, the quoting used should refer to the original quote rather than the nested quote.

1개의 좋아요

This is going to be hard to do, considering we can do this :arrow_down:

Why not teach your users to quote the original post instead of a quote insite another post? They can also quote from multiple posts if they want.

Interesting… I had always assumed the quote was actually validated… Didn’t realize that I could just have a pretend quote free for all…

Makes for a good litmus test… If someone purposely abuses quotes in that way, you know who to ban :wink:

Since the quotes aren’t validated, I see your point…

Thanks for considering :handshake:

1개의 좋아요

We do validate the quotes (kinda), and attach a .quote-modified class to any which have been amended. Let’s see if it figures out the nested quotes:

Hmmm, no it doesn’t. I guess ‘technically’ that content is still part of @ryanerwin’s post. Quite tricky to resolve though. As @zogstrip already said the best way is to try and get your users to quote the original post.

3개의 좋아요

They do quote correctly most of the time. For casual users, nested quotes can be pretty complicated… The “Quote whole post” button is very rarely used for us.

It’s just the real example that came up today, where an innocent but not extremely sophisticated user was just trying to make a quote, and the quote appeared as though it was from a different user…

That’s why I posted it here.

Mods can of course manually edit the post to fix it. And this can’t come up too terribly often. Just a thought to avoid an awkward situation that comes up occasionally :wink:

Here’s the actual post (names removed).
You can see how that being attributed to the opposite party in a debate comes across as pretty strange.

NOTE: feel free to delete the image in this post if it’s over the line for meta TOS… Just thought it best to provide a real example.

1개의 좋아요

@eviltrout 만약 수정이 엄청나게 복잡하거나/또는 어려우지 않다면, 누군가 이 작업을 맡아주었으면 좋겠어요. 하지만 매우 복잡하다면 그냥 포기합시다.

2개의 좋아요

기억이 맞다면, 비슷한 문제(발췌문에서 중첩된 태그를 매칭하는 JavaScript 문제)를 조사해 본 적이 있었는데, 후행 탐색(look-behind) 정규 표현식이 필요해서 막혀 있었습니다. 하지만 저보다 정규 표현식에 능한 누군가가 허용 가능한 해결책을 찾아낼 수 있다면 놀라지 않을 것입니다.

1개의 좋아요

중첩이 필요하지 않습니다. 위쪽으로 이동하면서 가장 가까운 인용 헤더 블록을 찾으면 됩니다.

1개의 좋아요

@nbianca가 최근에 비슷한 내용을 살펴본 적이 있어서, 이 작업에 좋은 후보가 될 것 같습니다.

3개의 좋아요

이 기능이 구현되어 이제 의도대로 작동합니다. 인용문을 다시 인용하면 원본 게시물의 정보가 유지됩니다. 위의 인용문 중 하나로 직접 시도해 보세요. :blush:

7개의 좋아요

:tada: 여기에서 가져온 결과, 작동하는 것 같습니다:

3개의 좋아요

이 주제는 4일 후 자동으로 닫혔습니다. 더 이상 새 답변을 남길 수 없습니다.