WWI I think, but you are correct. It was not about homosexuality at all.
You're right - thanks. Tolkien lost most of his close friends in the war(s) and I think there are many tributes to them in his works.